You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generator/src/main/resources/line-bot-sdk-nodejs-generator/api-single.pebble
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ export class {{operations.classname}} {
73
73
{% endif -%}
74
74
*/
75
75
public async {{op.nickname}}({% for param in op.allParams %}{{param.paramName}}{% if not param.required %}?{% endif %}: {{param.dataType}}, {% endfor %}) : Promise<{% if op.returnType %}{{ op.returnType }}{% else %}Types.MessageAPIResponseBase{% endif %}> {
76
-
return (await this.{{op.nickname}}WithHttpInfo({% for param in op.allParams %}{{param.paramName}}, {% endfor %}))[1];
76
+
return (await this.{{op.nickname}}WithHttpInfo({% for param in op.allParams %}{{param.paramName}}, {% endfor %})).body;
77
77
}
78
78
79
79
/**
@@ -93,7 +93,7 @@ export class {{operations.classname}} {
public async {{op.nickname}}WithHttpInfo({% for param in op.allParams %}{{param.paramName}}{% if not param.required %}?{% endif %}: {{param.dataType}}, {% endfor %}) : Promise<[Response, {% if op.returnType %}{{ op.returnType }}{% else %}Types.MessageAPIResponseBase{% endif %}]> {
96
+
public async {{op.nickname}}WithHttpInfo({% for param in op.allParams %}{{param.paramName}}{% if not param.required %}?{% endif %}: {{param.dataType}}, {% endfor %}) : Promise<Types.ApiResponseType<{% if op.returnType %}{{ op.returnType }}{% else %}Types.MessageAPIResponseBase{% endif %}>> {
@@ -205,7 +205,7 @@ export class ChannelAccessTokenClient {
205
205
"/oauth2/v2.1/token",
206
206
formParams,
207
207
);
208
-
return[res,awaitres.json()];
208
+
return{httpResponse: res,body: awaitres.json()};
209
209
}
210
210
/**
211
211
* Issues a new stateless channel access token, which doesn\'t have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
@@ -232,7 +232,7 @@ export class ChannelAccessTokenClient {
232
232
clientId,
233
233
clientSecret,
234
234
)
235
-
)[1];
235
+
).body;
236
236
}
237
237
238
238
/**
@@ -252,7 +252,7 @@ export class ChannelAccessTokenClient {
0 commit comments