Google People API connections list returns empty response - google-api-nodejs-client

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.

Related

Connect App Flutter with API instagrame Publish comment

I have a question about connecting my app, made with Flutter, with the Instagram API.
I want the user to register with their account, store the access token and then send a post to the API to publish a comment or add a like.
Can I do this with Flutter or do I need to use a different language like Python?
I checked the API documentation that Instagram provides and it seems that you can only do read-only requests (liking a post might not be possible).
The API you mentioned in your tags will not work with personal accounts, as Instagram states:
The API cannot access Instagram consumer accounts (i.e., non-Business or non-Creator Instagram accounts). If you are building an app for consumer users, use the Instagram Basic Display API instead.
You can try to use the mentioned Basic Display API instead, but mind you won't be able to author any posts or do actions in behalf of the user. To circumvent this, you might have to reverse-engineer the frontend facing portion of Instagram but I won't go into that.
To come back to your question, Flutter is well able to send network requests as mentioned here, but you still have a long way until you have functioning access to Instagram (check the Getting Started).

Facebook Marketing API - no app?

I want to pull ad data (campaigns, ad sets, & metrics like clicks/impressions/ctr) from Facebook using their API and put it into a database. Facebook's documentation says I need to create an app on their site in order to access the API, but that doesn't seem right. I'm not trying to create an app for my fb page, just want to extract data.
My first choice was to use an ODBC driver from
CData
, which does allowed me to successfully pull data from AdAccounts but threw an error when trying to get AdSets or AdStatistics:
OAuthException Code 10: You do not have sufficient permissions to perform this action.
I made sure to add in a target='act_{myAdAccountId}' parameter to the query, as per their documentation, but it didn't help. I figured this meant I didn't configure the driver properly, so maybe I'd have better luck just coding up a solution in python or php.
Next, I tried to run similar API calls using the Graph API Explorer and got the same error message. I created an access token that had all the extended permissions and then made a request to
GET /v2.4/act_{myAdAccountId}/adcampaigns.
This gave me the exact same OAuthException Code 10 error that I was getting through the ODBC Driver.
Can someone confirm whether it's possible to pull data from the API without building an app? If so, what permissions do I need to enable for my account? I'm already an Ad Account Admin in the "Ads Manager", and couldn't find anywhere else to set permissions.
Thanks!
Apps have no direct relation to Pages. You need to create an App for any API access. I did not use the Ads API yet, but i assume you need to use the ads_management permission with your App.
How to create Apps and authorize with the required permissions is explained in the docs: https://developers.facebook.com/docs
Since you asked about Login Review, all the information you need about that can be found in the docs too: https://developers.facebook.com/docs/facebook-login/review
I understand this is an old post, but in case if anyone was looking at a similar situation, I was able to call the Facebook Marketing API without building an app.
I posted a similar answer on another more recent question (Do I need a publicly accessible webserver in order to user Facebook's marketing API?), and was curious if this situation puzzled anyone else, which led me to here.
I wrote my API calls using Python 2.7 on Juypter notebook, and I just followed Facebook's Marketing API documentation and examples, modifying with my access tokens and account information.

Which Google API can access Hangouts Data?

What Google API would be the easiest to father the following information:
A list of all hangouts currently going on in my Google for Work Organization
People in those Hangouts
Links to join those hangouts.
I think the link below maybe could help.
It provides basic information such as getting the list of participants, getting the URL for the Hangout, and getting the HangoutId.
https://developers.google.com/+/hangouts/api/gapi.hangout#gapi.hangout.getHangoutId

How to find facebook account with emailid by using api

I am developing an application, in my application there is a requirement , to find the users profile based on EmailID in facebook and twitter using api's.
I have tried a lot but did not found any results
but when i using third party licensed api's they were getting the data from various social networking sites using emailid as input
Can any one please suggest me how to solve this
Facebook has removed the ability to search by email this year. It is covered in this stack overflow thread.
Even using FQL, it is neccessary for your app to have been approved by a user before it is able to access a user email. In the case where they have opted in all that is required is
SELECT email FROM user WHERE uid=FRIEND_ID
in the facebook FQL console.
Twitter has a similar rule for their API, and trying to search for user#email.com will end up looking for a user #email.com.
You will need to find other methods to search for users; searching by email tends to only be open in the app that the API creators made, and not for general public use.

Use LinkedIn API with Xcode

I'm using the API from the following site in order to connect to LinkedIn:
http://www.whitneyland.com/2011/03/iphone-oauth/comments/page/2/
But i'm trying to find a guide to learn how to get the list of contacts using xcode but couldn't find anything...
Can anyone direct me to anything?
Thanks,
See the Connections API from LinkedIn's Docs.
The Connections API returns a list of 1st degree connections for a user who has granted access to his/her account. You can control the fields you want to have returned and the number of connections returned for each call.