public function account()
    {
        $this->logger->debug("account: start");

        if (empty($this->access_key)) {
            throw new \Exception("access key not set");
        }

        $accountUrl = sprintf("%s/%s", $this->api_url, "account");
        $client = new \GuzzleHttp\Client();

        $result = $client->post($accountUrl, array(
            'multipart' => array(
                array(
                    'name' => 'accesskey',
                    'contents' => $this->access_key
                )
            ),
            'timeout' => $this->timeout
        ));

        $contents = $result->getBody()->getContents();
        $data = json_decode($contents, true);

        // check for non zero staus codes
        if (isset($data['flag']) && $data['flag'] > 0) {
            throw new \Exception($data['errortext']);
        }

        return $data;
    }
public function account()
    {
        $this->logger->debug("account: start");

        if (empty($this->access_key)) {
            throw new \Exception("access key not set");
        }

        $accountUrl = sprintf("%s/%s", $this->api_url, "account");
        $client = new \GuzzleHttp\Client();

        $result = $client->post($accountUrl, array(
            'multipart' => array(
                array(
                    'name' => 'accesskey',
                    'contents' => $this->access_key
                )
            ),
            'timeout' => $this->timeout
        ));

        $contents = $result->getBody()->getContents();
        $data = json_decode($contents, true);

        // check for non zero staus codes
        if (isset($data['flag']) && $data['flag'] > 0) {
            throw new \Exception($data['errortext']);
        }

        return $data;
    }
public function account ( ) { $ this -> logger -> debug ( "account: start" ) ; if ( empty ( $ this -> access_key ) ) { throw new \ Exception ( "access key not set" ) ; } $ accountUrl = sprintf ( "%s/%s" , $ this -> api_url , "account" ) ; $ client = new \ GuzzleHttp \ Client ( ) ; $ result = $ client -> post ( $ accountUrl , array ( 'multipart' => array ( array ( 'name' => 'accesskey' , 'contents' => $ this -> access_key ) ) , 'timeout' => $ this -> timeout ) ) ; $ contents = $ result -> getBody ( ) -> getContents ( ) ; $ data = json_decode ( $ contents , true ) ; // check for non zero staus codes if ( isset ( $ data [ 'flag' ] ) && $ data [ 'flag' ] > 0 ) { throw new \ Exception ( $ data [ 'errortext' ] ) ; } return $ data ; }
Check your subscription

@return array
Check your subscription