src/Bigcommerce/Api/Client.php
public static function getAuthToken($object)
    {
        $context = array_merge(array('grant_type' => 'authorization_code'), (array)$object);
        $connection = new Connection();

        return $connection->post(self::$login_url . '/oauth2/token', $context);
    }
public static function getAuthToken($object)
    {
        $context = array_merge(array('grant_type' => 'authorization_code'), (array)$object);
        $connection = new Connection();

        return $connection->post(self::$login_url . '/oauth2/token', $context);
    }
public static function getAuthToken ( $ object ) { $ context = array_merge ( array ( 'grant_type' => 'authorization_code' ) , ( array ) $ object ) ; $ connection = new Connection ( ) ; return $ connection -> post ( self :: $ login_url . '/oauth2/token' , $ context ) ; }
Swaps a temporary access code for a long expiry auth token.

@param \stdClass|array $object
@return \stdClass
Swaps a temporary access code for a long expiry auth token .