public static function getAccessToken($client_id, $code, $redirect_uri,
            $client_secret=NULL) {
        $full_url = Config::$MONEY_URL . "/oauth/token";
        return self::sendRequest($full_url, array(
            "code" => $code,
            "client_id" => $client_id,
            "grant_type" => "authorization_code",
            "redirect_uri" => $redirect_uri,
            "client_secret" => $client_secret
        ));
    }
public static function getAccessToken($client_id, $code, $redirect_uri,
            $client_secret=NULL) {
        $full_url = Config::$MONEY_URL . "/oauth/token";
        return self::sendRequest($full_url, array(
            "code" => $code,
            "client_id" => $client_id,
            "grant_type" => "authorization_code",
            "redirect_uri" => $redirect_uri,
            "client_secret" => $client_secret
        ));
    }
public static function getAccessToken ( $ client_id , $ code , $ redirect_uri , $ client_secret = NULL ) { $ full_url = Config :: $ MONEY_URL . "/oauth/token" ; return self :: sendRequest ( $ full_url , array ( "code" => $ code , "client_id" => $ client_id , "grant_type" => "authorization_code" , "redirect_uri" => $ redirect_uri , "client_secret" => $ client_secret ) ) ; }
Exchanges temporary authorization code for an access_token.

@see http://api.yandex.com/money/doc/dg/reference/obtain-access-token.xml
@see https://tech.yandex.ru/money/doc/dg/reference/obtain-access-token-docpage/
@param string $client_id The client_id that was assigned to the application.
@param string $code Temporary token.
@param string $redirect_uri URI that the OAuth server sends the
authorization result to. The value must exactly match the `redirect_uri` value
from the previous "authorize" call.
@param string $client_secret A secret word for verifying the application's
authenticity. Specified if the service is registered with the option to
verify authenticity.
@throws Exceptions/ServerError If status code >= 500
@return response object
Exchanges temporary authorization code for an access_token .