Anyone can help me on autofill OTP subscription [closed] - autofill

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 days ago.
Improve this question
I tried my self to implement this flow. But unable to do same. Its aut fill OTP subscription.
Here are the details:
Check Status API
http://54.68.219.97:8086/IntegrationMServices/CheckStatus?id=27935&tpid=29&tptxid=*********&opid=112&m=************
To Generate OTP
URL http://54.68.219.97:8086/IntegrationMServices/Generate_OTP/api/{msisdn}/{PromoID}/{PartnerID}/{TransactionID}
Response:
SUCCESS -
{
"Code": 0,
"Message": "Success",
"TransactionID": "190822141841961ZOTHERZ209Z0Z29864"
}
OR ERROR -
{
"Code": 99,
"Message": "System Error",
"TransactionID": ""
}
To Validate OTP
URL : http://54.68.219.97:8086/IntegrationMServices/OTPValidate/api/{msisdn}/{OTP}/{TransactionID}
Method: Get
Response:
SUCCESS -
{
"Code": 0,
"Message": "Success",
"TransactionID": "190822141841961ZOTHERZ209Z0Z29864"
}
OR ERROR -
{
"Code": 1,
"Message": "PIN Error",
"TransactionID": ""
}

Related

Facebook Messenger button error: "Action Unsuccessful There was an error delivering your message..."

I've checked the other questions about this error and the only solutions offered are "subscribe to the messaging_postbacks at Messenger -> Settings -> Webhooks -> Edit events.
You can see here that I have done this since the original setup of my bot, and I have even re-subscribed to it since:
But I am still getting this error:
I am logging any request that comes into my webhook and there is no activity, even though clicking the button, shows the payload value in blue as if I typed and sent it as a message. Then the popup "Action Unsuccessful" shows, and my bot doesn't receive anything.
Here is the response to FB with the button attachment elements:
{
"recipient": {
"id": "xxxxxxxxxxx"
},
"message": {
"attachment": {
"type": "template",
"payload": {
"template_type": "list",
"top_element_style": "compact",
"elements": [{
"title": "transfer",
"subtitle": null,
"image_url": "http://xxxxxxx",
"buttons": [{
"type": "postback",
"title": "transfer",
"payload": "transfer"
}]
}, {
"title": "hourly",
"subtitle": null,
"image_url": "http://xxxxxxxx",
"buttons": [{
"type": "postback",
"title": "hourly",
"payload": "hourly"
}]
}]
}
}
}
}
The Page Access Token just needed to be updated in the webhook. Probably to apply the latest permissions that include messaging_postbacks.
Go back to developer app dashboard. Select Messenger >> Settings.
Scroll down to the "Token Generation" section:
Select your page from the dropdown, and copy the new access token for use in your webhook.
Found a lot of similar questions and no clear answers. So I hope this saves someone the days of headache it caused me.

How to get data user API Facebook? [duplicate]

This question already has answers here:
Facebook JS SDK's FB.api('/me') method doesn't return the fields I expect in Graph API v2.4+
(4 answers)
Closed 6 years ago.
I use this API to take some notes from facebook page:
https://developers.facebook.com/docs/graph-api/reference/v2.8/user/feed
It returns me object:
"data": [
{
"story": "pdated their profile picture.",
"created_time": "2017-01-13T23:02:10+0000",
"id": "439421442879448_707028796118710"
},
How can I get photo and name of author?
You have to ask for the field:
/me/feed?fields=from
Result:
{
"data": [
{
"from": {
"name": "xxx",
"id": "xxx"
},
"id": "xxx"
},
...
...or to get pictures too:
/me/feed?fields=from{id,name,picture}
For Pages, just replace "me" with the Page ID.

How to create transaction for shopify order created via API

I have followed everything in the following shopify question which is basically the same thing but what is described there is not working for me at all. Here is the request I am sending to the transactions endpoint:
{
"transaction": {
"amount": "0.01",
"kind": "sale"
}
}
and here is the response I am getting:
{
"errors": {
"kind": [
"sale is not a valid transaction"
]
}
}
I am thinking something has changed with shopify's API since that seemingly duplicate question was answered.

Facebook Ads API: transaction_detail?

Facebook currently supports the ability to list the transactions that occur on an Ad Account through their API (although its very hard to find):
https://graph.facebook.com/v2.4/act_{{ACCOUNT_ID}}/transactions
{
"id": "{{TRANSACTION_ID}}-1399450",
"time": 1438255264,
"account_id": "{{ACCOUNT_ID}}",
"fatura_id": 0,
"amount": {
"currency": "CAD",
"total_amount": "2,100.40"
},
"charge_type": "payment",
"status": "completed",
"billing_start_time": 0,
"billing_end_time": 0,
"payment_option": "credit_card",
"tx_type": 3,
"app_amount": {
"currency": "CAD",
"amount": "2,100.40"
},
"provider_amount": {
"currency": "CAD",
"amount": "2,100.40"
}
}
However, if you notice, there's nothing in there about the Payment ID, thus making it very difficult to figure out what the heck this transaction/payment is for... nothing tiing to ads, adsets, campaigns, anything!
If anyone has any recommendations as to how to get more specific information about a transaction, I would love the help!
Also - just to note that if I used my APP_ID token (because it claims I can't do it from a user access token, which misleads me to think I was actually getting somewhere!) and ping the transaction id as such:
https://graph.facebook.com/v2.4/{{TRANSACTION_ID}}
I get:
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
}
Which is how you can apparently inspect payments from within canvas payments, but this is specifically for Ad accounts payments/transactions.

Open graph stories through API [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
[Apologies for poor quality question]
I am trying to pull open graph stories (public) published by my friends about an application. I realize that the typical filtering mechanism for feed (me/home?filter=app_321574327904696) does not work for Open Graph Stories.
Can someone help me find out the API that could filter OG stories for an application (or a keyword)?
Retrieving Open Graph actions is documented here: https://developers.facebook.com/docs/opengraph/using-actions/#read
You need the user_actions:<APP NAMESPACE> permission from the user whose actions you wish to read, then you need to make an API call to /<USER ID>/<APP NAMESPACE>:<ACTION TYPE NAME> to retrieve the actions
For example, to retrieve Pinterest's 'pin' actions posted by a user, you need the user_actions:pinterestapp permission to be granted, then make an API call to /me/pinterestapp:pin
A sample output for me begins:
"data": [
{
"id": "<REMOVED ID>",
"from": {
"name": "<REMOVED NAME>",
"id": "<REMOVED USER ID>"
},
"start_time": "2013-09-11T00:20:15+0000",
"end_time": "2013-09-11T00:20:15+0000",
"publish_time": "2013-09-11T00:20:15+0000",
"application": {
"name": "Pinterest",
"namespace": "pinterestapp",
"id": "274266067164"
},
"data": {
"pin": {
"id": "<REMOVED PIN ID>",
"url": "http://pinterest.com/pin/<REMOVED PIN ID>/",
"type": "pinterestapp:pin",
"title": "TEST"
}
},
"type": "pinterestapp:pin",
"no_feed_story": false,
"likes": {
"count": 0,
"can_like": true,
"user_likes": false
},
"comments": {
"count": 0,
"can_comment": true,
"comment_order": "chronological"
}
},
[...]