|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| createConsumer ($consumerData) | |
| createAccessToken ($consumerId, $clearExistingToken=false) | |
| getAccessToken ($consumerId) | |
| loadConsumer ($consumerId) | |
| loadConsumerByKey ($key) | |
| postToConsumer ($consumerId, $endpointUrl) | |
| deleteConsumer ($consumerId) | |
| deleteIntegrationToken ($consumerId) | |
Integration oAuth Service Interface
@api
Definition at line 16 of file OauthServiceInterface.php.
| createAccessToken | ( | $consumerId, | |
$clearExistingToken = false |
|||
| ) |
Create access token for provided consumer.
| int | $consumerId | |
| bool | $clearExistingToken |
Implemented in OauthService.
| createConsumer | ( | $consumerData | ) |
Create a new consumer account.
| array | $consumerData | - Information provided by an integration when the integration is installed.
array(
'name' => 'Integration Name',
'...' => '...', // Other consumer data can be passed as well
)
|
Implemented in OauthService.
| deleteConsumer | ( | $consumerId | ) |
Delete the consumer data associated with the integration including its token and nonce
| int | $consumerId |
Implemented in OauthService.
| deleteIntegrationToken | ( | $consumerId | ) |
Remove token associated with provided consumer.
| int | $consumerId |
Implemented in OauthService.
| getAccessToken | ( | $consumerId | ) |
Retrieve access token assigned to the consumer.
| int | $consumerId |
Implemented in OauthService.
| loadConsumer | ( | $consumerId | ) |
Load consumer by its ID.
| int | $consumerId |
Implemented in OauthService.
| loadConsumerByKey | ( | $key | ) |
Load consumer by its key.
| string | $key |
Implemented in OauthService.
| postToConsumer | ( | $consumerId, | |
| $endpointUrl | |||
| ) |
Execute post to integration (consumer) HTTP Post URL. Generate and return oauth_verifier.
| int | $consumerId | - The consumer Id. |
| string | $endpointUrl | - The integration endpoint Url (for HTTP Post) |
Implemented in OauthService.