/**
  * constructor
  *
  * @param string $appId
  * @param string $appSecret
  */
 public function __construct($appId, $appSecret, $agentId = null)
 {
     $this->http = new Http(new AccessToken($appId, $appSecret));
     $this->http->setAgentId($agentId);
 }