Skip to content

Commit

Permalink
新增smart tp setSupportVersion getSupportVersion 方法
Browse files Browse the repository at this point in the history
  • Loading branch information
easeava committed Dec 27, 2018
1 parent 6f976ed commit 89a75cb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Service/SmartTP/Authorizer/SmartProgram/Setting/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,29 @@ public function setNickname(string $nick_name)
{
return $this->httpPostJson('/rest/2.0/smartapp/app/setnickname', compact('nick_name'));
}

/**
* Set support version.
*
* @param string $version
* @return array|\EaseBaidu\Kernel\Http\Response|\GuzzleHttp\Psr7\MessageTrait|\Illuminate\Support\Collection|mixed|\Psr\Http\Message\ResponseInterface
* @throws \EaseBaidu\Kernel\Exceptions\InvalidArgumentException
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function setSupportVersion(string $version)
{
return $this->httpPostJson('/rest/2.0/smartapp/app/setsupportversion', compact('version'));
}

/**
* Get support version.
*
* @return array|\EaseBaidu\Kernel\Http\Response|\GuzzleHttp\Psr7\MessageTrait|\Illuminate\Support\Collection|mixed|\Psr\Http\Message\ResponseInterface
* @throws \EaseBaidu\Kernel\Exceptions\InvalidArgumentException
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function getSupportVersion()
{
return $this->httpGet('/rest/2.0/smartapp/app/getsupportversion');
}
}

0 comments on commit 89a75cb

Please sign in to comment.