35.Youtube




새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


자바스크립트를 이용하여 카톡 링크 메시지를 전송

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    To send a link message using javascript in KAKAO talk, the API source provided by Kakao Developers is requred.

    자바스크립트를 이용하여 카톡 링크 메시지를 전송하려면 카카오 개발자(Kakao Developers) 페이지에서 제공하는 API 관련 소스가 필요합니다.

    Follow the steps below.
    다음의 순서를 따라하면 됩니다.

    1. Create an application on the Kakao Developers site.
    1. Kakao Developers 사이트에서 애플리케이션 생성.

    2. Obtain the Javascript API key from "App Key" and reflect it in the source code below.
    2. "앱 키"에서 Javascript API 키를 획득 후 아래 소스코드에 반영.

    3. In "Platform" → "Web", add the domain to add the source code below and the domain to connect to.
    3. "플랫폼" → "Web"에서 아래의 소스코드를 추가할 도메인과 연결할 도메인 추가.
    *e.g. http://localhost:8081
    =======================
    작업

    1. Create an application on the Kakao Developers site.
     Kakao Developers 사이트에서 애플리케이션 생성.

    3232235521_1623319808.9284.png
    3232235521_1623319833.4711.png


    2. Obtain the Javascript API key from "App Key" and reflect it in the source code below.
     "앱 키"에서 Javascript API 키를 획득 후 아래 소스코드에 반영.
     3232235521_1623319932.6131.png
    3. In "Platform" → "Web", add the domain to add the source code below and the domain to connect to.
     "플랫폼" → "Web"에서 아래의 소스코드를 추가할 도메인과 연결할 도메인 추가.
    3232235521_1623320014.6698.png

    4.카카오링크에서 메세지 템플렛 생성
    3232235521_1623320175.1681.png
    3232235521_1623320194.285.png
    3232235521_1623320394.6304.png


    3232235521_1623320430.3468.png
    3232235521_1623320446.6445.png
    3232235521_1623320343.2281.png
       3232235521_1623320574.7736.png
    3232235521_1623320601.017.png

    3232235521_1623320650.0958.png
    3232235521_1623320755.1499.png
     지금까지 custom  kakao에서 설정 내용 입니다
    ================

    ■ ▶ ☞ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다 ♠ . ☞ 본자료는 https://11q.kr 에 등록 된 자료 입니다♠.

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    profile_image

    11qkr님의 댓글

    11qkr 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    < index.html >
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>카톡 공유</title>
    <script type="text/JavaScript" src="https://developers.kakao.com/sdk/js/kakao.min.js"></script>
    </head>
    <body>
        <input type="button" onClick="sendLinkCustom();" value="Custom"/>
        <input type="button" onClick="sendLinkDefault();" value="Default"/>
    
    <script type="text/javascript">
        function sendLinkCustom() {
            Kakao.init("[Javascript API key]");
            Kakao.Link.sendCustom({
                templateId: [templete id]
            });
        }
    </script>
    
    <script>
    try {
      function sendLinkDefault() {
        Kakao.init('[Javascript API key]')
        Kakao.Link.sendDefault({
          objectType: 'feed',
          content: {
            title: '딸기 치즈 케익',
            description: '#케익 #딸기 #삼평동 #카페 #분위기 #소개팅',
            imageUrl:
              'http://k.kakaocdn.net/dn/Q2iNx/btqgeRgV54P/VLdBs9cvyn8BJXB3o7N8UK/kakaolink40_original.png',
            link: {
              mobileWebUrl: 'https://developers.kakao.com',
              webUrl: 'https://developers.kakao.com',
            },
          },
          social: {
            likeCount: 286,
            commentCount: 45,
            sharedCount: 845,
          },
          buttons: [
            {
              title: '웹으로 보기',
              link: {
                mobileWebUrl: 'https://developers.kakao.com',
                webUrl: 'https://developers.kakao.com',
              },
            },
            {
              title: '앱으로 보기',
              link: {
                mobileWebUrl: 'https://developers.kakao.com',
                webUrl: 'https://developers.kakao.com',
              },
            },
          ],
        })
      }
    ; window.kakaoDemoCallback && window.kakaoDemoCallback() }
    catch(e) { window.kakaoDemoException && window.kakaoDemoException(e) }
    </script>
       
    </body>
    </html>

    profile_image

    11qkr님의 댓글

    11qkr 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


    • 일간 조회수
        • 게시물이 없습니다.
    • 주간 조회수
        • 게시물이 없습니다.
    • 월간 조회수


    Total 254 / 16 Page
    게시물이 없습니다.(다음페이지로 이동 하세요)



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-01 19:07:34

    오늘의 홈 현황


    • 현재 접속자♨ 502 명
    • 오늘 가입자※ 2 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 12 명
    • 오늘 방문자 1,816 명
    • 어제 방문자 1,415 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,352,962 명
    • 전체 게시물※ 8,611 개
    • 전체 댓글수※ 24,675 개
    • 전체 회원수 11,004 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑