I was trying to build a web app that uses spotify api to get the song/artist name by a track id(spotify), my intention was so everyone could use the web app, not only spotify users.
But I guess it's not possible to use the API without logging in the user ?
Can somebody confirm or maybe point me to a solution ?
According to the documentation you can register your application and use your secret to retrieve any non user-specific information.
See this page.
Related
I'm trying to build an app using GPT3 APIs and would like users to login to the app using OpenAI's credentials so as to use their account for GPT3 APIs requests, however there is no support for 3rd party login so far in Open AI's documentation. Anyone has ideas on how this can be done?
As far as I'm concerned Open ai does not have an oauth API like Google (for example). The only idea that occurs to me is to ask the user for their Open ai Api key and make the requests through that key
I am trying to authenticate a user inside a desktop application using the web api. I am not using a browser, I am using straight up GET and PUSH calls to the endpoints of the Spotify servers. Immediately I ran into some problems. It appears that upon the initial GET command to "accounts.spotify.com", the returned response includes HTML with a javascript function that runs and is responsible for dynamically generating HTML that you see on the initial login page. If you look at the Javascript function, it is clear that this is what is going on, however, you can also see this code is obfuscated and not meant to be used by us, the developers! (Link to Javascript code here for reference: Javascript function)
So my question is, while I can probably reverse engineer the code to get this working, would this be against the Spotify developer TOS?
Thanks!
Spotify's authentication happens through oauth, and a big part of user authentication as per the oauth rfc is where the user delegates permissions to your app to carry out API calls that affect their account, or return information about them. That's the web page you're seeing - it must be presented to your users so that they can delegate permissions so that Spotify can give your app an access token. It doesn't necessarily need to happen in a browser - it can happen in a web view inside your desktop application - but it does need to be loaded over https, and your application must not alter or reverse engineer the Spotify permissions delegations page.
As you correctly guessed, reverse engineering any Spotify APIs is against terms of service.
For more information on authorization on the Spotify platform, I'd recommend having a look at this guide.
Hope that helps! Please ping me if you have any more questions.
Hugh
Spotify Developer Support
I am trying to access the Shopify API from an external app that I am building (mobile). For example, I would like to access this API:
https://mystore.myshopify.com/admin/products.json
Of course I would need to authenticate my request first. So far everybody I asked (including Shopify support), suggested that the only way to access the data is through a Shopify App.
Can you suggest a way to do this?
I have found the answer. Follow these steps if you want to access the Shopify API from an external app:
Login to your store as an admin
Go to Apps
Create a Private App
Use the following pattern with every URL you create (I am using this to get all the orders)
https://:#.myshopify.com/admin/orders.json
The API Key and the password appear in your private app info page.
What I want to accomplish:
Display all my Spotify playlist on my website and let my visitors play the songs.
From what I've understood, I need to use the Spotify Web API to accomplish that, so I registered an app and received a Client Id and a Client Secret.
All the examples I've seen on https://developer.spotify.com/web-api/code-examples/ are pretty advanced for a newbie like myself and they all seem to require stuff like node.js or Composer etc. which I can't install since I'm on a shared hosting service.
What's the easiest way to show my playlists on my website?
Thanks!
Ensure all your playlists are publicly available (users other than you can't read your private playlists) and call the following endpoint — everything you need to know is documented:
https://developer.spotify.com/web-api/get-list-users-playlists/
i got a premium account of spotify and then registered an app and then got the key file . now i want to get the plalylist and user data of any user who uses my application.
I searched around the web but did not found any way to get the user data like access_token in facebook graph api.
Any body help me
Solved, i got Plasylist.bnk from the installation directory, and its solved now. thanks all