Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle tickets for async API calls #38

Closed
ddattee opened this issue May 28, 2018 · 0 comments
Closed

Handle tickets for async API calls #38

ddattee opened this issue May 28, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ddattee
Copy link
Contributor

ddattee commented May 28, 2018

Some API are running tasks asynchronously (eg: Order operations...).
Those API will return a ticket resource that will be used to follow task status and advancement.

$ticketCollection = $operation->execute();
foreach($ticketCollection as $ticket) {
    $ticket->getId();         // Get task ID
}
@ddattee ddattee added the enhancement New feature or request label May 28, 2018
@ddattee ddattee added this to the v0.2 milestone May 28, 2018
ddattee pushed a commit to ddattee/php-sdk that referenced this issue May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant