Q&A

Other language value is not supporting in Messaging API response

前提・実現したいこと

Want to multi-lingual support in Message API response.

発生している問題・エラーメッセージ

We implmented LINE messaging api to retrieve line-userid , emailaddress and Profile name using Verify url(https://api.line.me/oauth2/v2.1/verify) . It was successfully connected with server and got the response, but if someone use their profile name in other language(except English) , it showing in special character.

該当のソースコード

var contentType = 'application/x-www-form-urlencoded;charset=UTF-8'; var lineVerifyUrl= 'https://api.line.me/oauth2/v2.1/verify'; var state ="xxxxxxxx" varid_Token ="xxxxxxxx var clientId ="xxxxxxxx"
var verifyPayload = 'id_token=' + id_Token + '&client_id=' + clientId '&nonce=' + state;

    var verifyRequest = HTTP.Post(lineVerifyUrl, contentType, verifyPayload,headerNames,headerValues);
    if (verifyRequest.StatusCode == 200) {
      var verifyResponse =Platform.Function.ParseJSON(verifyRequest.Response[0]);
      Write(Stringify(verifyRequest));
      var emailAddress=verifyResponse.email;
      var displayName=verifyResponse.name;
      var userId=verifyResponse.sub;
      //This data has been captured in Staging BU > Data Extensions > Testing > LINE_Integration_Test");
      Write(displayName);
			}

試したこと

補足情報(FW/ツールのバージョンなど)

  • 0
  • 1
  • 487
  • twitter facebook

กดเ

  • 0
Are you sure? question.vm