axios-error
Advanced tools
Changelog
0.7.6 / 2018-08-23
SlackOAuthClient
methodsChangelog
0.7.4 / 2018-07-12
Changelog
0.7.0 / 2018-04-27
Messenger.createMessage;
Messenger.createText;
Messenger.createAttachment;
Messenger.createAudio;
Messenger.createImage;
Messenger.createVideo;
Messenger.createFile;
Messenger.createTemplate;
Messenger.createButtonTemplate;
Messenger.createGenericTemplate;
Messenger.createListTemplate;
Messenger.createOpenGraphTemplate;
Messenger.createMediaTemplate;
Messenger.createReceiptTemplate;
Messenger.createAirlineBoardingPassTemplate;
Messenger.createAirlineCheckinTemplate;
Messenger.createAirlineItineraryTemplate;
Messenger.createAirlineUpdateTemplate;
MessengerBatch.sendRequest;
MessengerBatch.sendMessage;
MessengerBatch.sendText;
MessengerBatch.sendAttachment;
MessengerBatch.sendAudio;
MessengerBatch.sendImage;
MessengerBatch.sendVideo;
MessengerBatch.sendFile;
MessengerBatch.sendTemplate;
MessengerBatch.sendButtonTemplate;
MessengerBatch.sendGenericTemplate;
MessengerBatch.sendListTemplate;
MessengerBatch.sendOpenGraphTemplate;
MessengerBatch.sendReceiptTemplate;
MessengerBatch.sendMediaTemplate;
MessengerBatch.sendAirlineBoardingPassTemplate;
MessengerBatch.sendAirlineCheckinTemplate;
MessengerBatch.sendAirlineItineraryTemplate;
MessengerBatch.sendAirlineUpdateTemplate;
MessengerBatch.getUserProfile;
MessengerBatch.sendSenderAction;
MessengerBatch.typingOn;
MessengerBatch.typingOff;
MessengerBatch.markSeen;
MessengerBatch.passThreadControl;
MessengerBatch.passThreadControlToPageInbox;
MessengerBatch.takeThreadControl;
MessengerBatch.requestThreadControl;
MessengerBatch.associateLabel;
MessengerBatch.dissociateLabel;
MessengerBatch.getAssociatedLabels;
getOpenConversations(options)
:
client.getOpenConversations().then((result) => {
console.log(result);
// {
// name: 'page_messages_open_conversations_unique',
// period: 'day',
// values: [
// { end_time: '2018-03-12T07:00:00+0000' },
// { end_time: '2018-03-13T07:00:00+0000' },
// ],
// title: 'Daily unique open conversations count',
// description:
// 'Daily: The total number of open conversations between your Page and people in Messenger. This metric excludes blocked conversations.',
// id:
// '1386473101668063/insights/page_messages_open_conversations_unique/day',
// }
});
getNewConversations(options)
:
client.getNewConversations().then((result) => {
console.log(result);
// {
// name: 'page_messages_new_conversations_unique',
// period: 'day',
// values: [
// { value: 1, end_time: '2018-03-12T07:00:00+0000' },
// { value: 0, end_time: '2018-03-13T07:00:00+0000' },
// ],
// title: 'Daily unique new conversations count',
// description:
// 'Daily: The number of messaging conversations on Facebook Messenger that began with people who had never messaged with your business before.',
// id:
// '1386473101668063/insights/page_messages_new_conversations_unique/day',
// }
});
Messenger
to MessengerBatch
: #255getDailyUniqueActiveThreadCounts
to getActiveThreads
#307sendQuickReplies
obj
instead of [obj]
: #302Affected APIs:
Before:
client.getBlockedConversations().then((counts) => {
console.log(counts);
// [
// {
// "name": "page_messages_blocked_conversations_unique",
// "period": "day",
// "values": [
// {
// "value": "<VALUE>",
// "end_time": "<UTC_TIMESTAMP>"
// },
// {
// "value": "<VALUE>",
// "end_time": "<UTC_TIMESTAMP>"
// }
// ]
// }
// ]
});
After:
client.getBlockedConversations().then((counts) => {
console.log(counts);
// {
// "name": "page_messages_blocked_conversations_unique",
// "period": "day",
// "values": [
// {
// "value": "<VALUE>",
// "end_time": "<UTC_TIMESTAMP>"
// },
// {
// "value": "<VALUE>",
// "end_time": "<UTC_TIMESTAMP>"
// }
// ]
// }
});
getDailyUniqueConversationCounts
insights API #304AirlineFlightUpdateTemplate
to AirlineUpdateTemplate
to match typename #329AirlineFlightUpdateTemplate -> AirlineUpdateTemplate
client.issueLinkToken(USER_ID).then((result) => {
console.log(result);
// {
// linkToken: 'NMZTNuVrPTqlr2IF8Bnymkb7rXfYv5EY',
// }
});
client.pushImage(RECIPIENT_ID, {
originalContentUrl: 'https://example.com/original.jpg',
previewImageUrl: 'https://example.com/preview.jpg',
});
client.pushVideo(RECIPIENT_ID, {
originalContentUrl: 'https://example.com/original.mp4',
previewImageUrl: 'https://example.com/preview.jpg',
});
client.pushAudio(RECIPIENT_ID, {
originalContentUrl: 'https://example.com/original.m4a',
duration: 240000,
});
client.pushSticker(RECIPIENT_ID, {
packageId: '1',
stickerId: '1',
});
[new] support LINE ButtonsTemplate alias to match typename buttons
:
[breaking] remove deprecated method isValidSignature
in LineClient
ok
is false
in Telegram: #268{
ok: false,
result: { /* ... */ }
}
Now throws Telegram API
error.
{ ok: true, result }
: #313Before:
{
ok: true,
result: {
key: val
}
}
After:
{
key: val,
}
Make it easier to access result and consist with other platforms.