How to retrieve user shares - rest

We have a working app that we're hoping to extend to include querying of personal shares via the linkedin rest api, using https://api.linkedin.com/v1/people/~/shares
Our app has the following scopes provisioned in the developer console (and we're providing these in the auth request): ['r_basicprofile','w_share','rw_company_admin','r_ad_campaigns','rw_organization']
The http response returns the message
Access to shares denied
I'm wondering what scope is required to access this api or where I can find the docs to answer my own query?

Related

Graph API: Using client_credential grant type to read my or another signed-in user profile

I thought it would be simple to use Graph API to read my own user profile or another signed-in user profile but no luck so far.
I created an Azure app with only the following:
a) Client Secret
b) Delegated API permission of User.Read only
I then used the following simple code to try to read my own profile but it returned (400) Bad Request even though I can see that a token was returned successfully.
I was wondering if I could use the same Azure app to read another user's profile provided that a sign-in prompt could be created to switch account.
Any thoughts?
The me endpoint requires a user context. You're using the client credentials grant type, which is for client apps to use in an app-only context. The app has no awareness of who "me" is, or what "your" profile is because you haven't provided a user.
For the app to read the profiles of other users in the client credentials flow, you need to add one of the MS Graph application-type permissions, and send a request to the https://graph.microsoft.com/v1.0/users enpoint
Get user API endpoint

Uber Eats API scopes

I'm following the Uber Eats API documentation and i'm having trouble with it. I want it to work with my point of sale web app.
The documentation say:
To generate a client credentials token, retrieve your client_id and client_secret for your app from the developer dashboard...
But when trying to generate client credentials it shows:
Sorry, Can't generate an access token, make sure you have checked at least one scope which is allowed to generate access token using client credentials.
But there are no items available for selection in the developers dashboard.
Documentation: https://developer.uber.com/docs/eats/guides/authentication#example-request
Dashboard: https://developer.uber.com/dashboard/
You have to contact the person who provided the accounts to activate them. I think only they can do it.

LinkedIn Ads Rest API - I can connect to /v1/people/~ but not the /v2/adAnalyticsV2?

I can connect to the /v1/people/~ API URL perfectly with my Access Token but trying the same Token on the /v2/adAnalyticsV2? gives me a 403 error (without further explanation). I read through all the LinkedIn documentation about their Rest API and I just don't get it.
Please help.
Based on the error code, it looks like you do not have the proper permission to access this endpoint.
Has your application been given access to use LinkedIn's Marketing Analytics API? If not, you can apply for access here: https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner
If you already have access, you should check if your application is requesting the required permission when requesting authorization codes. You would do this either by selecting it in the Default Application Permissions section when setting up your application, or by explicitly requesting it through the scope parameter in the authorization step
I got a note from the engineering team that I can't locate now mentioning something about disabling analytics from v2 of the API for some reason. Worth reaching out to your contact at LI, for sure, but most likely it was removed recently.

cloud storage ACL based on Google user accounts

Add a Google user to a resource as owner
Try to access resource through https://storage.googleapis.com/example.bucket.com/test.html link
Returns: Anonymous callers do not have storage.objects.get access to object
Isn't this the point of the Google user based ACL?
The URL you are trying to access, storage.googleapis.com, is the XML API. See the Request Endpoints documentation for details.
Essentially, you get that error because that endpoint uses OAuth for authentication. Instead, you should use the Authenticated Browser Downloads endpoint, which authenticates based on the user's logged-in cookie.
In your case, the following URL would work:
https://storage.cloud.google.com/example.bucket.com/test.html

How to fetch user public Facebook data using Facebook Id?

I am developing an app which requires data from social networks..I wanted to know how to fetch details of a person from his fid in Facebook.I want to fetch only the data are marked public.From google search i got to know that we can use rest API or java API to get the data but it requires API key or access token which are generated only after logging in to the Facebook. please explain me if there is any other way to fetch the details.
From google search i got to know that we can use rest API or java API to get the data
Rest API is deprecated, and such a thing as a “Java API” does not exist – it’s just the Graph API that you’ll mainly use to get information from Facebook, and it’s quite well documented.
but it requires API key or access token which are generated only after logging in to the Facebook.
Of course you will need an app to be able to talk to the Graph API – but it does not require a user to login/“connect” to your app just to read basic (public) profile info. An app access token will be enough for that.