Based on the Web-Api documentation, I’ve come this far, but I’ve done all of this using node.js.(app.js And index.html) How can I make a js+Html link with the web component? or i have set up an album list / how should i use web join to play a music?
For example I don’t know how to run this api request using web component.
No,it is not necessary, you can use for everything the web component
Authentication
All requests to Web API require authentication. This is achieved by sending a valid OAuth access token in the request header. For more information about these authentication methods, see the Web API Authorization Guide.
Thanks to this sentence, I have read most of the relevant documents and after examining the project that @Jaxparrow shared on Github in detail, I can now use API requests. It took some time but I still have no idea how to use these requests in web component.
Currently, javascript is needed to get results from an API query. There is no block to run the .js extension in the web component. I need a block running javascript to be able to do OAuth. The “CustomWebView” extension might work for me, but it’s just too advanced for querying javascript.
If there is a way to run javascript with the web component, could you share it with me?
I’ve gone through the documentation again, but I don’t understand what you mean. To use Web Api, OAuth approval is required. All the examples made on this subject are getting results using javascript.
In addition, queries can be made using CURL, but the token time given for use is limited. It needs to be constantly updated. I think there is something I can’t see or understand. How can I use Web Api without using JavaScript?
JavaScript is only an example, what you have to do is
Request User Authorization
The first step is to request authorization from the user, so our app can access to the Spotify resources in behalf that user. To do so, our application must build and send a GET request to the /authorize endpoint with the following parameters: (See details there)