Permissions for accessing youtube recommendations through Data API v3 - http-status-code-403

I am trying to access the youtube recommended videos for each loggedin user.I have finished authentication and obtained the token. Presently using https://developers.google.com/youtube/v3/docs/activities/list
I am getting a 403 Permission error in the response. Which permissions and where do I need to set them.

I had forgotten to specify the scope. It should be http://gdata.youtube.com

Related

Fetch instagram user media with API Token

I've checked many resources, and most of them claim the only way to fetch users media using an token is to create facebook app, add instagram, generate user token for yourself and fetch graph api. https://graph.instagram.com/me endpoint. Is there no other way to simply fetch user's media via official api by using access token and username?
Also, when I use /me endpoint, everything works. If I change it to /*myusername*, where I obviously put my username instead, it says that said object does not exist, cannot be loaded due to missing permissions, or does not support this operation.
So, no. If you want to use Instagram API to fetch regular( ie not business ) users' feed, you need to use Instagram Basic API.

OAuth 2.0 {"error_description":"Invalid issuer or signature."} in Postman

I'm trying to execute a REST API call in SharePoint Online. For this, I wanted to see if I can register an app in Azure AD. I believe I was able to do so and I'm able to get back a token. However, upon executing the GET request Postman always throws {"error_description":"Invalid issuer or signature."}in the body of the response.
Here're the screenshots detailing everything:
Don't mind the Postman variable {{TenantID}}. That's not the issue, I also tried with the writte-out tenant ID - doesn't make a difference.
So what I was unsure about at first was the 'Scope' parameter in the "GET NEW ACCESS TOKEN" in Postman. I tried various scopes, for example
'Sites.FullControl.All' or 'https://microsoft.sharepoint-df.com/.default'. But that didn't change the outcome. Still, is the scope I set correct for SharePoint REST API? I know that for the Microsoft Graph 'https://graph.microsoft.com/.default' works.
I also tried different app permissions, not just
'Sites.FullControl.All'
Do you have any idea what the cause of the error might be?
Thanks.
The sharepoint permission Sites.FullControl.All is of type Application.
For this type of permission you MUST use the client_credential flow.
The Client Credentials grant is used when applications request an
access token to access their own resources, not on behalf of a user.
Try to call the auth url with:
grant_type=client_credentials
&client_id=xxxxxxxxxx
&client_secret=xxxxxxxxxx
Otherwise if you want to access the Sharepoint on behalf of the user change the permission type to delegated

How can I use Live Video API from a local nodejs or any other runtime?

I need to check if I can use the Live Video API from my local runtime (like nodejs for example) to post live videos on my page, using a long-lived access token to my page.
Whether I generate a user or page token, with Graph Explorer App ID or my own App ID, and required permissions (publish_action for my personal profile, publish_pages and manage_pages for my page), all my calls are rejected with an error:
"(#100) No permission to perform current operation."
I thought I had to create my own App and submit it for review with required items (publish_pages, manage_pages, Live Video API) but someone from the Developper Community told me that as my app is not public-facing, I couldn't get it reviewed and I shouldn't even create an App.
I also read somewhere that my page had to be whitelisted but I didn't find how to do it.
How can I use the Live Video API from a local application?
Thanks.
Best regards,
Nicolas
Using the Graph Explorer App to generate the token will make my API calls fail because I'm not the admin or a developer of the app.
So I need my own app to use the Live Video API but I don't have to submit it for review as long as I make API calls on behalf of an admin, developer, testers.
Following this documentation: Graph API Reference, using the API, I was able to post live videos on my user ID, with a (admin) user access token.
But on my page ID, using a (admin) page access token, I'm getting this error:
"(#100) No permission to perform current operation."

How to create new playlist on my Spotify account using another user's Authentication key through terminal?

I tried to create a new playlist for a user different user on Spotify using my developer account's credentials (used the authentication key which was generated by using developer's ID as the owner ID). But it didn't work and displayed the following error message.
error message: "You cannot create a playlist for another user."
I want to know the way of creating new playlist on one account using another account's credentials.
I want my users to be able to work with spotify playlists using my application.
Thank you.
As you've already quoted:
"You cannot create a playlist for another user."
The access token used when making a Create a Playlist request needs to be authorized by the user for whom you're creating the playlist. Otherwise, any application could create a playlists on users' behalf without their explicit permission.
This doesn't stop your application from creating playlists for other users though, but you'll need to use either the Authorization Code flow or the Implicit Grant flow to get the access token. (Access tokens retrieved through the Client Credentials flow isn't tied to any specific user.) These flows are part of the oAuth 2.0 standard and there are lots of documentation out there to read more about them. Please see Spotify's Authorization Guide for a guide that's specific to Spotify. Code examples for these flows are also available on Github.

Flickr.NET - Bypass Flickr Authorization Page

I am uploading photos to Flickr in .NET project using Flickr.NET API Library (Flickr.NET CodePlex Link). Its working perfect. But for every request, Flickr asks my permission to authorize the app (check screenshot below):
My question: is there any way I authorize the app once for my whole life rather it asks for my permission for each photo to upload?
Once you have exchanged your request token for an access token, you can store the access token in your application's persistent memory and use the access token to make subsequent requests.

Resources