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

Webgains new implementation of their API #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slaweknaczynski
Copy link

Webgains is moving away from SOAP at the end of 2023, this is a new implementation using their new REST API. All usual methods are implemented from transactions to vouchers, offers, merchants etc.

Usage:

$network = new \Oara\Network\Publisher\WebGainsSmart();
$credentials = [];
$credentials['api-key'] = 'api key goes here'; // This is the API key generated on webgains website
$credentials['sitesAllowed'] = [123456]; // This is an array of allowed siteIds (INT). If passed as empty array it will check all siteIds on publisher account
$credentials['publisherId'] = 654321; // This is the publisherId (INT) that can be found on webgains website

Webgains is moving away from SOAP at the end of 2023, this is a new implementation using their new REST API. All usual methods are implemented from transactions to vouchers, offers, merchants etc.

Usage:

$network                     = new \Oara\Network\Publisher\WebGainsSmart();
$credentials                 = [];
$credentials['api-key']      = 'api key goes here'; // This is the API key generated on webgains website
$credentials['sitesAllowed'] = [123456]; // This is an array of allowed siteIds (INT). If passed as empty array it will check all siteIds on publisher account
$credentials['publisherId']  = 654321; // This is the publisherId (INT) that can be found on webgains website
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

Successfully merging this pull request may close these issues.

1 participant