Small micro-channel application development - easy to call the API source

Causes: working on a trip to swim like a small micro-channel program , you need to access a lot of information on attractions, then you can choose its own new database and import data is read, but for me, because only one person, but also related to the database maintenance needs, choose to call the existing API.

Process: First, access to micro-channel official documentation on the procedure API call can be found wx.request official micro-channel method, as shown below (because the content just put too much a part of the screenshot).

 

 After finding the way, we just need to find tourist attractions can provide data API, here I chose the easy-source API. After application of the corresponding API, you can find the corresponding appid and key in the following interface.

 

 

Meanwhile queries connection API and example code official API parameters must be provided.

 

 

Result: The call wx.request in small micro-channel interface and application developers pass parameters to complete the call.

 

 

Guess you like

Origin www.cnblogs.com/cchenyang/p/12104035.html