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

Add public endpoints for subscriptions #14

Open
plinkowski opened this issue Oct 6, 2020 · 1 comment
Open

Add public endpoints for subscriptions #14

plinkowski opened this issue Oct 6, 2020 · 1 comment

Comments

@plinkowski
Copy link

Please add public endpoints for subscriptions http://api.myemma.com/api/external/subscriptions.html to the PHP wrapper.

@bsfajardo
Copy link

As a temporary solution, I used the Request object directly to assign a Member to a Subscription in Emma:

$emmaRequest = new Request($apiAccountId, $apiPublicKey, $apiPrivateKey);
$emmaRequest->postData = [
    'member_ids' => [$memberId],
];
$emmaRequest->method = 'POST';
$response = $emmaRequest->processRequest('/subscriptions/' . $subscriptionId . '/members/bulk');

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

No branches or pull requests

2 participants