Recurly_Account::get PHP Method

get() public static method

public static get ( $accountCode, $client = null )
    public static function get($accountCode, $client = null)
    {
        return Recurly_Base::_get(Recurly_Account::uriForAccount($accountCode), $client);
    }

Usage Example

 public function testGatweayError()
 {
     $this->client->addResponse('GET', '/accounts/abcdef1234567890', 'client/gateway-unavailable-502.xml');
     try {
         $account = Recurly_Account::get('abcdef1234567890', $this->client);
         $this->fail("Expected Recurly_ConnectionError");
     } catch (Recurly_ConnectionError $e) {
     }
 }
All Usage Examples Of Recurly_Account::get