Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Multi curl #54

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

innerspirit
Copy link

@innerspirit innerspirit commented Sep 27, 2017

Adds support for doing post/put/delete requests in parallel

Example:

$meli = new Meli($appId, $appKey);
$meli->put('items/'.$item_1, $body_1, $params_1, true); // true = enqueue, defaults to false
$meli->put('items/'.$item_1, $body_2, $params_2, true);

$responses = $meli->executeQueued();
// Both puts are executed at the same time

Note: this requires #52 and #53


This change is Reviewable

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant