메소드 | 설명 | |
---|---|---|
__construct ( $access_token ) | ||
accountInfo ( ) : response | Returns information about a user's wallet | |
buildObtainTokenUrl ( string $client_id, string $redirect_uri, string $scope ) : response | Builds authorization url for user's browser | |
checkToken ( ) | ||
getAccessToken ( string $client_id, string $code, string $redirect_uri, string $client_secret = NULL ) : response | Exchanges temporary authorization code for an access_token. | |
getAuxToken ( $scope ) | ||
incomingTransferAccept ( string $operation_id, string $protection_code = NULL ) : response | Accepts incoming transfer with a protection code or deferred transfer. | |
incomingTransferReject ( string $operation_id ) : response | Rejects incoming transfer with a protection code or deferred trasfer. | |
operationDetails ( string $operation_id ) : response | Returns details of operation specified by operation_id. | |
operationHistory ( array[] $options = NULL ) : response | Returns operation history of a user's wallet. | |
processPayment ( array[] $options ) : response | Confirms a payment that was created using the request-payment method. | |
requestPayment ( array[] $options ) : response | Requests a payment. | |
revokeToken ( string $token, string $revoke_all = false ) : response | Revokes a token. | |
sendAuthenticatedRequest ( $url, $options = [] ) |
public accountInfo ( ) : response | ||
리턴 | response | object |
public static buildObtainTokenUrl ( string $client_id, string $redirect_uri, string $scope ) : response | ||
$client_id | string | The client_id that was assigned to the application. |
$redirect_uri | string | URI that the OAuth server sends the authorization result to. Must have a string value that exactly matches the redirect_uri parameter specified in the application registration data. Any additional parameters required for the application can beadded at the end of the string. |
$scope | string | A string of requested permissions(joined list of strings) |
리턴 | response | object |
public static getAccessToken ( string $client_id, string $code, string $redirect_uri, string $client_secret = NULL ) : response | ||
$client_id | string | The client_id that was assigned to the application. |
$code | string | Temporary token. |
$redirect_uri | string | URI that the OAuth server sends the authorization result to. The value must exactly match the `redirect_uri` value from the previous "authorize" call. |
$client_secret | string | A secret word for verifying the application's authenticity. Specified if the service is registered with the option to verify authenticity. |
리턴 | response | object |
public incomingTransferAccept ( string $operation_id, string $protection_code = NULL ) : response | ||
$operation_id | string | |
$protection_code | string | Used in case of protected transfer. Omitted for deffered transfers |
리턴 | response | object |
public incomingTransferReject ( string $operation_id ) : response | ||
$operation_id | string | |
리턴 | response | object |
public operationDetails ( string $operation_id ) : response | ||
$operation_id | string | |
리턴 | response | object |
public operationHistory ( array[] $options = NULL ) : response | ||
$options | array[] | Key-value parameters collection |
리턴 | response | object |
public processPayment ( array[] $options ) : response | ||
$options | array[] | Key-value parameters collection |
리턴 | response | object |
public requestPayment ( array[] $options ) : response | ||
$options | array[] | Key-value parameters collection |
리턴 | response | object |
public static revokeToken ( string $token, string $revoke_all = false ) : response | ||
$token | string | A token to be revoked |
$revoke_all | string | |
리턴 | response | object |