Current location - Music Encyclopedia - QQ Music - Music platform API and interface calls
Music platform API and interface calls

The first thing to do is to contact the Summit Open Platform and apply for the relevant appid and appSecret.

Then save it locally and use it when calling the interface. Otherwise, you will not have permission to call the interface.

1. Interface calling principle

When calling the API interface of the Summit Open Platform, the API calling end (i.e. the program run by the user calling the interface) calls the data on the API server side (i.e. RC2P The interactive process when the provided server can call the data on the pinnacle open platform).

2. Apply for permission to use the calling interface

First introduce the concept:

appSecret: application secret, which is also issued by the Peak Open Platform to client applications and cannot be used It is open to the public and does not need to be passed in the URL address. Application merchants must pay attention to confidentiality and need to use it when calling the API.

As can be seen from the above introduction, if you want to call the API interface service of the Pinnacle Open Platform, the first thing to do is to contact the Pinnacle Open Platform, apply for the relevant appid and appSecret, and then save it locally and call the interface. Otherwise, you will not have permission to call the interface.

3. How to encrypt

For each API interface, a different URL may be spelled out. For this URL, you need to call rc2p-utils.jar provided by the Summit Open Platform to implement encryption. , and use the encrypted value as the value of the access_token parameter.