I am sure that I am being very blind or stupid somewhere along the way but I have looked for this answer for a while and haven't come up with anything!
I have been working on getting my actionscript app working with Google's Oauth mechanisms which is all working great now but I can't for the life of me work out how to get details on the currently logged in user.
I want to get get the user's name (alias or full name I don't care) and a thumbnail url to display at the top of my app to make it clear who is logged in.
I have looked in general google api docs, drive docs and youTube docs and not found it anywhere...
I'm sure this is a really easy answer for someone to give!
Thanks
Add this to the scope -
https://www.googleapis.com/
auth/userinfo.profile
And after authorization is
done, get the information
from - https://
www.googleapis.com/oauth2/
v1/userinfo?alt=json
It has loads of stuff -
including name, public profile
url, gender, photo etc.
Source :
stackoverflow.com/questions/7130648/get-user-info-via-google-api
Related
I am currently trying to get access to the Google Pay API for passes. I am following the official guide provided by Google: https://developers.google.com/pay/passes/guides/basic-setup/get-access-to-rest-api
Unfortunately I can't even follow the first step, as the sign up form for Google Merchant seems to be offline. The URL where I expect the form just forwards me to an FAQ page.
Has anyone had similar issues lately.
Any kind of help or information is appreciated! Thanks.
Moving discussion from comment to answer to include image.
Hard to say if we're seeing the same thing. This is what I see when visiting https://support.google.com/pay/merchants/gethelp?visit_id=1-636549173956235486-3194546471&rd=4
Is this what you see?
You need to go straight to step 2. Access the API Console.
I am aware of the update to Instagram apis. I have read through the documentation regarding fetching hashtag images. I'm confused regarding 2 points -
They have a section "Endpoints", which gives the url for fetching images using tags - https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN
At the same time, when i try to submit for review (under Permissions Review section), in order to get access token, i get this message -
"This use case is not supported. We do not approve the public_content permission for one-off projects such as displaying hashtag based content on your website. As alternative solution, you can show your own Instagram content, or find a company that offers this type of service (content discover, moderation, and display)."
The 2nd point makes me believe that Instagram has stopped sharing hashtag images to apis, at the same time i can find a lot of widgets still fetching hashtag images. How do they do that? Can anyone point me in the right direction?
The 2nd point makes me believe that Instagram has stopped sharing hashtag images to apis,
Correct. Instagram has made business decision to block most developers from accessing this content.
at the same time i can find a lot of widgets still fetching hashtag images.
This doesn't tell you much. They might have gotten their app approved for other purposes. Also it appears that Instagram has made some exceptions for big apps (like Tinder). Life is not fair.
How do they do that? Can anyone point me in the right direction?
You probably cannot. 99% of the use cases are not allowed and so they will reject your app if you try to submit it. Read this short article about what you can and cannot do with the new Instagram API
The other widgets you are talking about probably have presented Instagram with one of the valid use cases to fetch the data. They are able to get only the public content. This new restriction is probably a business decision. If you would still want to get the data you are looking for, you shopuld possibly go to a third party data provider who sell such data
I know that Airbnb haven't opened their API to the public yet, but searching the internet I found some people are using it.
I tried to contact them, and also Airbnb, but without any answers.
Does anyone here knows any contact email, page, or phone number that I can refer to?
I have read here that you can find your API key by looking at the requests that AirBNB uses in their own website. So use the web-developer tools in chrome, or firefox, or firebug in firefox and search trough the requests in the network panel until you find the key being used in any JSON request. Some urls contain this key param, you copy that :) works for me!
Oh BTW, i'd like to remind you that the API is currently not officially released to fetch data in the background while you are logged in. When you use this key, they'll know your identity. You might get blocked or at least warned by AirBNB for using their API while you are maybe not allowed to. Read their terms & conditions to make sure. I am not taking any responsibility, of course ;)
You can now find your API key on the meta tags of the source code when logged in to your dashboard. Search for canonical_host and you will find:
{"canonical_host":"www.airbnb.com","api_config":{"key":"<your-api-key>"}
Just to update this set of answers, the api is on the following address but you need to request access first.
https://www.airbnb.com/partner
It offers an FAQ that informs you about the process and it will always be updated
As far as I can tell, they have shut down this service as of today.
"Unfortunately, this is no longer available" will be what the API returns.
EDIT:
It started working again after a few days. Very odd, maybe an internal problem, or we were rate limited or something.
Log into Airbnb.com, open up the web developer console, go to the network tab, filter by type json, and look at the url and find "client_id".
I found this answer here
I'm wondering if there is a way to connect to Facebook using VB.net? By connect I mean I would be able to access friend list, notifications, messages etc.
So far I have managed to validate the log in - i.e. it tells you if a user exists with the specified details. But now I'm stuck with how to view the accounts information.
Thanks
You will have to get an AppKey, this is required. Another thing is you have to install the sdk from Facebook. After this has been done, take a look at this project to get going, its too broad to post here...
https://github.com/prabirshrestha/FB-CSharp-SDK-First-FB-Application
https://developers.facebook.com
Good Luck!
first of all, I'm spanish so sorry about my English.
It's my first question, so I hope do it correctly.
I have been looking for in the searcher and google but I didn't find solution about my problem.
I need to know who of my friends have installed one app via API (I have twitter4j lib.).
I have a friend's list id and I need to know if one per one have or not permission to one app.
I have seen all the methods in twitter4j but I don't know how do it.
It seems easy... so sorry if the answer is stupid, I have tried to search everywhere I have could.
Thanks,
This is possible via twitters settings page, however there's no API available for this.
If you mean source of the tweets? Like Web, Mobile Web, Twitter for Blackberry
Source of tweets (Application user tweeted with) is returned for each tweet gotten.
https://dev.twitter.com/docs/api/1/get/statuses/show/%3Aid