I am trying to figure out how could I get the exact date I registered on my facebook.
I am using this code to get datas from facebook(using JSON) but I cant figure out how to get the member since
JSONObject profile = new JSONObject(json);
////////
String ID = profile.getString("id");
Is there any way I could do that?
Thanks
Short Answer: No
Long Answer:
The Facebook API, Graph API and FQL, does not have that provision. That being said, the Facebook website (user, not developer) does not provide that information to the account holder either.
There may or may not be a reason for Facebook to not reveal that information. A search on SO gave this link: http://facebook.stackoverflow.com/a/8821957/450534. Although, the platform in question for this question is python, the available API options, essentially, remain common across platforms.
Related
I am working on the FourSquare venue API.
The following API link was giving results until this morning at 3 AM:
https://api.foursquare.com/v2/venues/search?ll=-6.21944223,106.80315059&intent=browse&radius=30&client_id=XXXX&client_secret=XXXX&v=20180512&m=foursquare
but now there is an empty venue array with status code 200. There is no update on the developer website.
Please help me understand why this is happening. Thanks in advance.
I had a similar problem with my app. Up until a couple of weeks ago we were able to make requests to the Foursquare api without specifying category ids. By doing this all place categories were considered. But now if you ommit categoryId no place is returned at all. I don't know if this is a bug on the Foursquare api or just a feature change (a VERY BREAKING change).
While we don't know the real answer, try adding a "categoryId" to your request, such as:
https://api.foursquare.com/v2/venues/search?
client_id={YOUR_CLIENT_ID}
&client_secret={YOUR_CLIENT_SECRET}
&v=20130815&ll={LATITUDE},{LONGITUDE}
&limit=50
&intent=browse
&radius=50
&categoryId=4d4b7104d754a06370d81259,4d4b7105d754a06372d81259
(the indentation on the URL above is just for legibility, you should pass this URL as a single line when doing your request)
As #FelipeFerri suggested, I have added following parameter in API and it start giving the result.
https://api.foursquare.com/v2/venues/search?ll=-6.21944223,106.80315059&intent=browse&radius=30&client_id=XXXX&client_secret=XXXX&v=20180512&m=foursquare&&categoryId=4d4b7104d754a06370d81259,4d4b7105d754a06372d81259,4d4b7105d754a06373d81259,4d4b7105d754a06374d81259,4d4b7105d754a06376d81259,4d4b7105d754a06377d81259,4d4b7105d754a06375d81259,4e67e38e036454776db1fb3a,4d4b7105d754a06378d81259,4d4b7105d754a06379d81259
Thanks
Same thing happens to me. I've changed the API version (v) also without any
How can i extract email id based on the website that i have got from Place Details using Google maps API.
I want to extract the generic email id from these place details or the website. I have attached a screen shot to show what i have. I am using open Refine.I am able to parse the phone number but can't parse email id's as its not present in these place details but i can see it on the website.
Thank you in advance.
This is the code i am using -
"https://maps.googleapis.com/maps/api/place/details/json?placeid=" + cells['PlaceID'].value + "&key=AIzaSyCSp-f-_FWHw8jfNFF9yd7mgUxaX-DZo8g"
According to the google maps places API this is not something that can be returned from the API. I believe that Google does not want its API to be used as a source for spamming companies. Based on that, I can't think of any legal option that would give you this email.
The only solution that I can think of would be to get the URL attribute from google maps API result and from then scrape the page and hope that there is a way to find the email address in the HTML code, but :
I don't think that google would present it in a easily scrappable way;
I believe it would go against terms of use of Google.
So to summarize I don't think there is an easy and legal solution to your question.
I have to use Google Documents List API for an Android app until I have time to migrate to Drive API.
I want to get the First and Last name of the Author of a Document that is shared with me.
Currently I'm only able to get the username of the Author using the method below.
// entry is a DocumentListEntry
String aName = entry.getAuthors().get(0).getName();
Is there a property or method I'm missing? The documentation for the Java Docs API is sparse.
Nope. the docs here don't provide a lot of leeway on this. You might be able to try and tokenize the name, but there's no inherent guarantee a given name has to be made up of >1 part, and I wouldn't recommend that course of action.
I've long time wanting to know how I can get the audio data or whole video data from a youtube video. I did what any reasonable person would do, I googled it.
Sadly I didn't find any good answers. Mostly of what I was suggested was to get the data out of download links provided by: http://www.youtube.com/get_video.php?video_id={VideoKey}
However, it doesn't work anymore. Comments from forum sections etc, also suggest other people facing the same problem as I. So from that I take the conclusion that this information is out of date. But there must be a way since other websites and browser addons like, KeepVid.com or YoutubeInMp3.com still works.
So my question is simple. How do I recieve/get the audio/video data from a youtube video? In a link perhaps?
Who better to ask, other than google themselves https://developers.google.com/youtube/2.0/developers_guide_java
Example: The following example demonstrates how to retrieve a standard feed and print information about the videos in that feed.
String feedUrl = "http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed";
VideoFeed videoFeed = service.getFeed(new URL(feedUrl), VideoFeed.class);
printVideoFeed(videoFeed, true);
I want to do some application to learn how to work with android and maps. So I want to make something simple, like showing on the map the schools or museums from a given city.
I think I have to use the Google Places API, so I read some things about it. I saw that I have to make some request to a rest server, and they will return me a json response. I understand that. But, what I don't understand is how can I "translate" those json responses into pinpoints on the map.
If you can guide me to some tutorials or some examples with this, I would appreciate that. I saw some links right here, on SO, but they were incomplete or not working.
Thanks
you use the json data as follows:
var a=new JSONObject(jsonData);
http://developer.android.com/resources/tutorials/views/hello-mapview.html
Use the data from a to constuct the necessary objects and add it to the map.
http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-mobile-google-maps-places.html