그래프 API 버전

Whats App Business Message QRDL

Represents a WhatsApp QR code or short link. See QR Codes.

읽기

Cannot be queried directly. Use the WhatsApp Business Phone Number > Message Qrdls endpoint to get fields on a QR code or short link.

Graph API Explorer
GET v21.0/...?fields={fieldname_of_type_WhatsAppBusinessMessageQRDL} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->get(
    '...?fields={fieldname_of_type_WhatsAppBusinessMessageQRDL}',
    '{access-token}'
  );
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
    "...?fields={fieldname_of_type_WhatsAppBusinessMessageQRDL}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_WhatsAppBusinessMessageQRDL}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"...?fields={fieldname_of_type_WhatsAppBusinessMessageQRDL}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
그래프 API를 사용하는 방법을 알아보려면 그래프 API 사용 가이드를 읽어보세요.

매개변수

이 엔드포인트는 매개변수가 없습니다.

필드

필드설명
code
string

QR code or short link ID.

deep_link_url
string

QR code or short link deep link URL.

prefilled_message
string

Text that will appear in a new WhatsApp message when the customer triggers the QR code or short link.

qr_image_url
string

QR code or short link image URL. When requested, must designate the image format you want returned. Values can be PNG or SVG. Example:


?fields=qr_image_url.format(SVG)

만들기

다음 경로에서 message_qrdls 에지에 POST 요청을 만들 수 있습니다:
이 에지에 게시할 때 a WhatsAppBusinessMessageQRDL이(가) 생성됩니다.

매개변수

매개변수설명
code
string

ID of the QR code or short link to update. Omit if creating a QR code or short link.

generate_qr_image
enum {PNG, SVG}

Indicates QR code or short link image format.

prefilled_message
string

Text that will appear in a new WhatsApp message when the customer triggers the QR code or short link.

필수

반환 유형

Struct {
code: string,
prefilled_message: string,
deep_link_url: uri,
qr_image_url: uri,
}

오류 코드

오류설명
100Invalid parameter
200Permissions error
300Edit failure

업데이트 중

이 엔드포인트에서 수행할 수 없는 작업입니다.

삭제 중

/{whats_app_business_phone_number_id}/message_qrdls에 DELETE 요청을 만들어 a WhatsAppBusinessPhoneNumber에서 a WhatsAppBusinessMessageQRDL을(를) 분리할 수 있습니다.

매개변수

매개변수설명
code
string

ID of the QR code or short link.

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter