All URIs are relative to http://api.madana.io/rest
Method | HTTP request | Description |
---|---|---|
getPlatforms | GET /platforms | Used to Handle Incoming Webhooks from Facebook. |
listenTwitterWebhook | POST /platforms/twitter | Used to Handle Incoming Webhooks from Facebook. |
registerTwitterWebhook | GET /platforms/twitter | Used to Handle Incoming Webhooks from Twitter. |
File getPlatforms(opts)
Used to Handle Incoming Webhooks from Facebook.
Used to Handle Incoming Webhooks from Facebook
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.SocialPlatformServiceApi();
let opts = {
'body': "body_example" // String |
};
apiInstance.getPlatforms(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | String | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json
File listenTwitterWebhook(opts)
Used to Handle Incoming Webhooks from Facebook.
Used to Handle Incoming Webhooks from Facebook
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.SocialPlatformServiceApi();
let opts = {
'body': "body_example" // String |
};
apiInstance.listenTwitterWebhook(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | String | [optional] |
File
No authorization required
- Content-Type: application/json
- Accept: application/json, application/xml
File registerTwitterWebhook(opts)
Used to Handle Incoming Webhooks from Twitter.
Used to Handle Incoming Webhooks from Twitter
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.SocialPlatformServiceApi();
let opts = {
'crcToken': "crcToken_example" // String |
};
apiInstance.registerTwitterWebhook(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
crcToken | String | [optional] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json