Tag: FORMAT_JSON
-
Post Views: 14 1. In the previous release interface, only one channel is supported for a release. Therefore, the release of the three channels needs to call the interface (APP, Netease account, Weibo) 3 times respectively, as shown in Figure 1 2. On the current release interface, it is ready to publish at one time and can be published on…
-
Post Views: 17 1. Configure the client through the application component, \common\config\main-local.php 2. Set the format used for the request content to json through the setFormat() method, \common\logics\http\yqdsj_api\article.php 3. When using the REST API, since the request format is all JSON, in order to simplify the code, the format of the request object can be directly configured. by configuring[[\yii\httpclient\Client]] requestConfig…
-
Post Views: 15 1. Please refer to the previous blog:https://www.shuijingwanwq.com/en/2016/11/26/10288/ 2. Prepare to implement RESTful web services based on shujujixi 3. Based on the GII generation model on the Frontend application, edit \environments\dev\frontend\config\main-local.php, as shown in Figure 1 4. Execute .\init in Windows PowerShell to overwrite \frontend\config\main-local.php, and set the IP allowed by GII, as shown in Figure 2 5.…