I want to retrive all the contacts in my organization directory via API. I tried querying using OAuth Playground but I didn't get any group for my "Directory". I want to fetch all the people in my organization.
I just tested, and
http://code.google.com/googleapps/domain/profiles/developers_gude.html#retrieving_without_query
works fine. Scope should be
https://www.google.com/m8/feeds/profiles
Related
As an admin, I want to view the members of all groups present in a google workspace account with the help of an API. Is there any API to perform this action. If not are there any alternatives?
I tried searching in google docs page. They are having Directory API to list all the members of a given group. But I need to view members of all groups present in a google workspace account (not one group at a time)
I am trying to fetch the list of a person's contacts using Google People Api. It works well on the "try this interface" on the google developer console.
But while trying to fetch responses using googleapis
or
HTTP Call to
https://people.googleapis.com/v1/people/me/connections?access_token=accessToken&personFields=emailAddresses&requestSyncToken=true
Returns:
{
"nextSyncToken": "^MisAxiFjnAAAABII_rKSh_Wz1gIQ_rKSh_Wz1gIux9KTpVj73mi1BREyou28OiQ0MTJmYmEyZi01ODJiLTQ1YzItODdmYi0xZjkxMDNkYTIxMDk"
}
All the accesses and permissions seem alright. I am expecting a list of contacts but get only this one field. What am i missing here?
Found the problem and solution myself.
This problem was being faced only with Gsuite accounts. We have to enable api access from admin panel of GSuite account to make it work. In case you do not want to do that, use Google Contacts Api.
Google contacts api works perfectly but it still works on gdata protocol.
I'm experiencing troubles requesting list of campaigns for some accounts. I'm requesting data with C# SDK , and my query is pretty simple: /v2.2/act_<account id>/adcampaign_groups.
For some accounts this works fine, but for some it returns OAuthException #10 (You do not have sufficient permissions to perform this action).
The result is the same when using Graph Explorer, so it doesn't seem like SDK issue. I also get the same error when requesting /v2.2/act_<account id>. But I see this account with all its properties when requesting /v2.2/me/adaccounts.
I have administrator permissions in ads cabinet, and I can see campaigns for these faulty accounts in web UI, so I don't see any reason why it shouldn't work.
Any help?
I'm trying to write some application that scan user's group posts. When I read the group feed posts using the API I’m interested to get some information on the one who posted this post ('from' field). The graph API today gives only the id and the name of this person. I'm interested also in his work place. I tried taking the user id and to access the / resource and to get his work field , but this field is not returned. When I’m looking on the same user profile in Facebook I see his work place is public, even I’m not connected with him.
Anything I can do to get this user work with the existing Facebook API?
Normally, if the work history info is not public, you'll need the "user_work_history" permission (see https://developers.facebook.com/docs/facebook-login/permissions#reference-extended-profile).
If it's public, you can try calling the
/{USER_ID}?fields=id,work
I want to fetch a list of the Opengraph and Graph apps that my account is an admin of. I cannot find documentation to perform such a task. Is this possible?
I am developing a tool to fetch tokens dynamically (which we will then use to make user-generated posts later). Currently, I have to paste in the AppID manually. I would like to make a dropdown of the current list of available apps to perform this task.
Edit~ This page of FB documentation suggests you can of course fetch a lot of information about an individual Application when you already have its applicationID: http://developers.facebook.com/docs/reference/api/application/
Instead, I would develop roughly this: 'Facebook, I have the access_token for this developer account, for which apps is this developer account an administrator' Response: 'AppID1, AppID2, AppID9'
You can access the lists of apps a use is a developer on by hitting
/me/applications/developer/
or using the app_role FQL table with following query
select application_id from developer where developer_id = xxxxxxxxx
Thanks to davek804 for the query