กดเ
前提・実現したいこと
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);
}