Difference between revisions of "Offerit API Add Affiliate"
From Offerit
(Blanked the page) |
OfferitRob (talk | contribs) (→NuSOAP Example) |
||
| (13 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Offerit Manual | ||
| + | | show_api_admin_section = true | ||
| + | }} | ||
| + | This function allows you to add data for a specific affiliate. To use this function, you must make a SOAP call with the following parameters: | ||
| + | *'''username''' - Username of the affiliate. | ||
| + | *'''password''' - Password for the affiliate. | ||
| + | *'''firstname''' - Affiliate's first name. | ||
| + | *'''lastname''' - Affiliate's last name. | ||
| + | *'''email''' - The affiliate's email. | ||
| + | *'''company''' - The affiliate's company. | ||
| + | *'''url''' - The affiliate's url. | ||
| + | *'''tel''' - Affiliate's telephone number. | ||
| + | *'''icq''' - The affiliate's ICQ. | ||
| + | *'''aim''' - The affilaite's AIM. | ||
| + | *'''msn''' - The affiliate's MSN. | ||
| + | *'''address1''' - First line of the affiliate's address. | ||
| + | *'''address2''' - Second line of the affiliate's address. | ||
| + | *'''city''' - The affiliate's city. | ||
| + | *'''state''' - The affiliate's state. | ||
| + | *'''country''' - The affiliate's country. | ||
| + | *'''zip_code''' - The affiliate's zip code. | ||
| + | *'''tax_id_or_ssn''' - The affiliate's tax ID or Social Security number. | ||
| + | *'''ref''' - If the affiliate was referred by another affiliate, enter their affiliate ID here. | ||
| + | *'''minimum_payout''' - The minimum payout for this affiliate. | ||
| + | *'''join_ip''' - The IP address the affiliate signed up with. | ||
| + | |||
| + | == NuSOAP Example == | ||
| + | |||
| + | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]: | ||
| + | |||
| + | <pre> | ||
| + | $values = Array( | ||
| + | 'username' => 'offtest', | ||
| + | 'password' => 'fdsafdsa', | ||
| + | 'firstname' => 'tester', | ||
| + | 'lastname' => 'testtest', | ||
| + | 'email' => 'test321@test.com', | ||
| + | 'company' => 'testing co.', | ||
| + | 'url' => 'test.com', | ||
| + | 'tel' => '123-1234', | ||
| + | 'icq' => '', | ||
| + | 'aim' => '', | ||
| + | 'msn' => '', | ||
| + | 'address1' => '123 main st', | ||
| + | 'address2' => '', | ||
| + | 'city' => 'anytown', | ||
| + | 'state' => 'nj', | ||
| + | 'country' => 'usa', | ||
| + | 'zip_code' => 12345, | ||
| + | 'tax_id_or_ssn' => '', | ||
| + | 'ref' => '', | ||
| + | 'minimum_payout' => '50', | ||
| + | 'join_ip' => '192.168.1.1' | ||
| + | ); | ||
| + | |||
| + | $result = $client->call('add_affs', $values, 'offeritapiadmin_wsdl'); | ||
| + | </pre> | ||
| + | |||
| + | === Sample Output === | ||
| + | You will get a response similar to the following for each of the affiliates created: | ||
| + | |||
| + | <pre> | ||
| + | Array | ||
| + | Array | ||
| + | ( | ||
| + | [0] => Array | ||
| + | ( | ||
| + | [result] => 1 | ||
| + | [loginid] => 5 | ||
| + | ) | ||
| + | ) | ||
| + | |||
| + | </pre> | ||
Latest revision as of 12:19, 31 August 2016
This function allows you to add data for a specific affiliate. To use this function, you must make a SOAP call with the following parameters:
- username - Username of the affiliate.
- password - Password for the affiliate.
- firstname - Affiliate's first name.
- lastname - Affiliate's last name.
- email - The affiliate's email.
- company - The affiliate's company.
- url - The affiliate's url.
- tel - Affiliate's telephone number.
- icq - The affiliate's ICQ.
- aim - The affilaite's AIM.
- msn - The affiliate's MSN.
- address1 - First line of the affiliate's address.
- address2 - Second line of the affiliate's address.
- city - The affiliate's city.
- state - The affiliate's state.
- country - The affiliate's country.
- zip_code - The affiliate's zip code.
- tax_id_or_ssn - The affiliate's tax ID or Social Security number.
- ref - If the affiliate was referred by another affiliate, enter their affiliate ID here.
- minimum_payout - The minimum payout for this affiliate.
- join_ip - The IP address the affiliate signed up with.
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array(
'username' => 'offtest',
'password' => 'fdsafdsa',
'firstname' => 'tester',
'lastname' => 'testtest',
'email' => 'test321@test.com',
'company' => 'testing co.',
'url' => 'test.com',
'tel' => '123-1234',
'icq' => '',
'aim' => '',
'msn' => '',
'address1' => '123 main st',
'address2' => '',
'city' => 'anytown',
'state' => 'nj',
'country' => 'usa',
'zip_code' => 12345,
'tax_id_or_ssn' => '',
'ref' => '',
'minimum_payout' => '50',
'join_ip' => '192.168.1.1'
);
$result = $client->call('add_affs', $values, 'offeritapiadmin_wsdl');
Sample Output
You will get a response similar to the following for each of the affiliates created:
Array
Array
(
[0] => Array
(
[result] => 1
[loginid] => 5
)
)