getting image url from google contact api - google-maps

I am using google contacts api for getting my contacts information.
I am getting data through this url to generate feed and then parsing this feed to get the data.
I am able to get email and name of my contacts but unable to get image of my contact.
Can somebody please help me in this

Send a GET request with the userEmail and contactID. Assuming that the contact has a photo, you'll receive a link which you can use to access the photos. Keep in mind this requires authentication.

Related

Attendance API from zoho people in postman

I am trying to get data of attendance API from zoho people in postman application .. so for this i already get access token and now i am trying to access all data ..
I tried this link and paste in get
https://www.zoho.com/people/help/api/attendance-api.html
That is the URL for the help page. (Please note that Zoho has announced they are doing away with authtokens and transitioning to OAuth). Having said that, the URL I am currently using to access an employee's attendance data looks like this:
https://www.zoho.com/people/api/attendance/getAttendanceEntries?authtoken=[YOUR AUTH TOKEN]&empId=[EMPLOYEE ID]

Contacts created using Google-contacts API are not getting synchronized from an Android device

I have created contacts using google contacts POST API. and I am successfully able to fetch them using GET API.
Reference.
Now, Logged into the same google account from an android device and successfully synced contacts but the contacts which are created using POST API are not imported in sync.
Note:
Contacts Created from Android are fetched Successfully using GET API from Web-Client.
Contacts Deleted using Delete API are successfully deleted from android device on sync ( both contacts which are created using api or android) and vice-versa.
Can anyone help me by telling how to resolve this issue. Thanks in advance.
You have to add the gContact:groupMembershipInfo field in your XML request body while creating contacts in order to create contacts in My Contacts.
Add the following in your POST request
<gContact:groupMembershipInfo deleted="false"
href="http://www.google.com/m8/feeds/groups/userEmail/base/groupId"/>
where groupId is 6 for My Contacts.
You can get the GroupId for all the groups by sending an authorized GET request to the contact groups feed URL
https://www.google.com/m8/feeds/groups/{userEmail}/full
This request wil give the detail of the Groups.
Refer this for more information Retrieving_all_contact_groups

How to retrieve instagram photos with certain hashtag without using client_id or access_token

I've built a website that show photos with certain hashtag while using client_id and access_token to call instagram API, and it work successfully.
Since my client is in Sandbox mode, I have to use someone else's client_id to call instagram API. I'm curious if there's any solution that can retrieve the search result of certain hashtag in JSON format without using client_id and access_token.
I've found an example that can retrieve user photo feed in JSON format, but I can't find any solution that can retrieve the search result of certain hashtag in JSON format like this. Is this not possible?
These guys provide such service for everyone
instagram.pixelunion.net
Basically, the site is not necessary, you can authorize yourself through API by calling:
api
If you learn someone's client_id, you can make token for yourself without their knowledge or permission.
you can get the photos from instagram by using this.
$hashtag = "fun";
$url = "https://www.instagram.com/explore/tags/".$hashtag."/?__a=1";
$res = #file_get_contents($url);
$media = json_decode($res, true);
$image = $media["tag"]["media"]["nodes"];
NOTE: I am not sure for if the API rules policy changes from Instagram in future.

Youtube Api get user's subscriped channels

I'm coding a app which needs to get a list of subscribed channels of the user.
So the user gets navigated to this page so I can get the authorization key:
Get Access key for my App "AboReminder"
Now I get the access key which I need for some api requests. But I am stuck on the issue that I dont have any glue how to get the subscription list.
I'm not able to understand the information on the google page: Google APi documentation
So my question how is a possible request for getting all subscriped channels of the user?
send an ajax request to the following URL after replacing the {{OAUTHKEY}} with the appropriate user authorization key
https://content.googleapis.com/youtube/v3/subscriptions?part=id,contentDetails,snippet&maxResults=10&mine=true&key={{OAUTHKEY}}
This should be a GET request and no request body required to set.
You can navigate to the next set of results using 'nextPageToken' in the response.
By default api can generate only 5 results. You can get upto 50 results by providing 'maxResults' query parameter.
As far as I know, there is no way to get all the list.

Any way to get email address from Google Drive API Permissions so I can differentiate 2 users with the same name?

I have read from previous posts [1, 2, 3] that the email address is not displayed for Google Drive Permissions API due to privacy reasons. But I am trying to look for a way to display user permissions where there are 2 different users with the same name.
With the Google Drive sharing UI, you can differentiate two different users with the same name as it also displays their email next to their name (I don't see why this is not possible in the API if the Google Drive UI can get it).
I would prefer not having to rely on the now deprecated DocList API to get the emails from the ACLs.
Unfortunately, using the documents list API is your only option for now to get the email addresses, sorry.
With v3 API yu can specify the fields parameter of your request.
For Get request : request.Fields = "kind,id,type,emailAddress,domain,role,allowFileDiscovery,displayName,photoLink,expirationTime,teamDrivePermissionDetails,deleted"
For List request : request.Fields = "permissions(kind,id,type,emailAddress,domain,role,allowFileDiscovery,displayName,photoLink,expirationTime,teamDrivePermissionDetails,deleted)"
About about = service.about().get().execute();
User user = about.getUser();
System.out.println("user" + user.toString());
You can print out the user information (JSON string).
It contains the emailAddress.
You can parse the JSON string for the emailAddress.
list does not return email, but get does
permission = service.permissions.get(fileId,permissionId)
System.out.println("email" + permission.emailAddress);