Google Buzz return the status if the post submission was success or not? - api

Hi How can I know the status after the post submission? from my site i have made a google buzz buton when I click on this the defined post will submit to the google buzz url. but I want to know if the post submission was success of failure, because I need to keep a track on that. So that on next time I dont need to show the buzz icon there if I already posted there.
So how will I know it was a success or failure?
http://www.google.com/buzz/post?message=Here's%20Buzz!&url=http://www.google.com/buzz
or
window.open(
"http://www.google.com/buzz/post?" +
"message=Here's%20Buzz!&url=http://www.google.com/buzz",
"_blank",
"resizable=0,scrollbars=0,width=690,height=415"
);

You would need to either make an API call to search for the URL posted or you would need to subscribe to the Buzz Firehose to confirm that the post was created successfully. The widget does not have a callback mechanism.
Alternatively, you could go through the OAuth 2 sequence, and instead of posting via the widget, post via the API. Posting via the API will give you a response back telling you whether it succeeded or not.

Related

Correct way to ask for chatbot verification

I want to 1) be able to receive updates about the activity in the comments on my instagram page and then 2) to be able to leave a reply.
I far as I understand the products, 1) can be made using Webhooks and 2) requires Instagram Graph API.
My app is intended to be used only by me. However, when I try to go through verification process, the form requires me to show how users can log into the app and so on. This does not apply to me.
The app is really simple: the comment is posted -> Webhook sends an update -> a reply is generated (this is out of the scope of this question) -> a reply is posted using Instagram Graph API from my page. You can see that the app does not have or require any additional UI.
The owner/developer of this chatbot is business, however it does not provide any servicies to other businesses. When applying for verification, I am only requesting 'instagram_manage_comments', however even there they ask me about the user log in (see the attached screenshot).
The account went through business verification already.
I was not able to find the information that is 100% relevant to my case.
The question is: what is the correct way to ask for the verification? Does Instagram support apps without additional UI and logging in? And basically what am I doing wrong?
Thanks in advance!

Query discord api from webiste

Is there a way to query the discord API without have a bot on a server.
I would like to retrieve my friends and my profile images and put it on a website I created.
I've done some research and only found stuff for discord bots.
Is what I want even possible ?
Yes, this is possible.
Take a look at this API route. You can just make a request there with the user id and get the whole user object.
If you need more information on the API itself and how to use it check out the Discord API Reference

Is there a event handler for new comments for Facebook comment plug in?

I am trying to leverage Facebook comments plug in and push notifications for post on my page. What I am basically trying to do is:
user creates a post
the Facebook comment is dynamically inserted for that post by suffixing id from that post.
The above two are already done in the page.
Now what I want is, when someone posts, a push notification is subscribed if the user allows and when a comment is made a push notification is pushed to the user. The user is identified by the ID of the post as well which is stored on database.
I tried to attach a event handler on Facebook iframe comment box but was thrown with cross origin error.
I was trying webhooks but couldn't work on local host and found I need ngrok to validate my test url. I am posting this to ask is that is my flow even valid or I am seriously misunderstanding the concept. If someone could validate my flow.I will be happy to work on it or I will be just wasting my time.
Here's the link with the Facebook comments applied on post:
https://helpingcow.com/postit/get_share_listings
The facebook have killed "comment.create" event subscriptions.See the answer here to my related question answer.The preferred method is to use webhooks.
As I have already mentioned in question,that I cant use ngrok because it only supports python 3.6 and above and I have 2.7.
But I used localtunnel from npm.It did the work and I have validated my localhost url and test webhooks are now functional.I really dont need the data from the json payload from webhooks but just need a way to get to id of the posted item when the facebook comment is posted but there is no way the client can know about that event unless some server sent events are used.

Yodlee webhooks not hitting my URL

I have been reading Yodlee Docs at https://developer.yodlee.com/Yodlee_API/Webhooks for implementing webhooks
What i did is, first registered a webhook for one of my users using following end point
POST /{cobrandName}/v1/cobrand/config/notifications/events/{eventName}
Then i triggered a refresh for one of the account using following endpoint POST /{cobrandName}/v1/refresh
But seems that Yodlee doesnt hit my URL when refresh is completed or there is an error in refresh.
I also tried to add an account using FastLink to see if Yodlee hits my URL when an account is added. But it doesn't. I am not sure what exactly is the problem. Can you please help?
Although i have a dobt - Does the webhook hit only if add/edit/refresh account was done using the API and not FastLInk provided by yodlee?
I am using Account Agreegation API and Developer account for testing.
Webhook event notifications will work only when you try to add the account using YSL APIs (manually).It doesn't work with FastLink. I have been informed by Yodlee Support. They also informed me that till date they don't have any client using webhook service, which was bit scary to know.
Please find a simple example to use webhooks-
1)Subscribe event using this URL- http://webhook.info/post/FLQLMZMFJI
2)Initiate add account process
3)Open the following URL and find the refresh notifications -
http://webhook.info/#/watch/FLQLMZMFJI
Please note: As you have subscribed for webhook event now. Please unsubscribe first using
DELETE /{cobrandName}/v1/cobrand/config/notifications/events/{eventName}
Delete Subscription

Using Input Box to Post onto Twitter

Is it possible to post onto Twitter using the sharing URL, for example:
http://twitter.com/home?status=My Status Update
But, instead of creating a link for a user to click, I want to have an input box that will post the content of the input box as the status. So, whatever the user types into the input box would replace My Status Update.
I'm thinking there should be a way to use the form to post onto this URL hxxp://twitter.com/home?status=XXXX where XXXX is the input value. Is this possible?
UPDATE: I realize I described this wrong - it doesn't have to ACTUALLY POST the status, it can take them to Twitter, ask them to logged in (if not, skip), and then put the status update inside the Tweet Box and require the user to press Tweet to send it
Thanks!
No, Twitter require the status to be sent from it's interface.
You can provide the user an option to send status from your site only with twitter application and only after the user authorized your application to sends twits in his account.
Sadly, the solution to this may be more complicated then you think.
Twitter recently switched to full OAuth authentication to interact with their api and to post status updates etc.
In short, to do what you suggest above will require your visitors to log in.
To simplify this, on my websites I use the Official Twitter Tweet Button because I feel that my visitors will trust it the most and will enter in their username/pass without worry.
The Official Twitter Tweet Button page has a builder where you can select various options to change the look and content of the tweet itself.
Be sure to checkout the full documentation for the advanced usage examples and the full reference of properties that can be used with the javascript tweet button
p.s.
On my site I registered for an app so I could include the following js file:
<script src="http://platform.twitter.com/anywhere.js?id=MY-APP-ID&v=1"></script>
And my links look something like this:
Tweet