Difference between revisions of "Offerit API List Affiliate Details"
From Offerit
Adam-offerit (talk | contribs) |
OfferitJames (talk | contribs) |
||
Line 6: | Line 6: | ||
* '''loginid''' - The affiliate ID to get information from | * '''loginid''' - The affiliate ID to get information from | ||
+ | |||
+ | == NuSOAP Example == | ||
+ | |||
+ | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]): | ||
+ | |||
+ | <pre> | ||
+ | $values = Array( | ||
+ | 'loginid' => 3, // The affiliate ID to get information from | ||
+ | ); | ||
+ | $result = $client->call('list_aff_details', $values, 'offeritapiadmin_wsdl'); | ||
+ | </pre> | ||
+ | |||
+ | == Sample Output == | ||
+ | <pre> | ||
+ | Array | ||
+ | ( | ||
+ | [loginid] => 3 | ||
+ | [username] => TestingAccount | ||
+ | [password] => $1$afqK3zpl$AFVfbgs4YUyjgVEQyfmlN1 | ||
+ | [payvia_type_id] => 1 | ||
+ | [status] => 0 | ||
+ | [pass_hash] => 8454040144e78f6dd9badb9.90502981 | ||
+ | [join_date] => 1316550365 | ||
+ | [inhouse] => 0 | ||
+ | [api_key] => | ||
+ | [rss_pass_code] => | ||
+ | [firstname] => Adam | ||
+ | [lastname] => Testing | ||
+ | [email] => testing@toomuchmedia.com | ||
+ | [date_posted] => 1316550365 | ||
+ | [join_ip] => 10.10.10.73 | ||
+ | [reviewed] => 0 | ||
+ | [minimum_payout] => 50 | ||
+ | [bonus] => 0 | ||
+ | [bonus_used] => 0 | ||
+ | [verify] => | ||
+ | [reason] => | ||
+ | [company] => TEsting | ||
+ | [url] => http://testing.com | ||
+ | [tel] => | ||
+ | [icq] => 123123123123 | ||
+ | [aim] => asdfasdfasd | ||
+ | [msn] => | ||
+ | [address1] => 123 adsflkasjflsakdhj | ||
+ | [address2] => 2134 skdjfhasdkfjh | ||
+ | [city] => kjdfhaskjfh | ||
+ | [state] => as | ||
+ | [country] => US | ||
+ | [zip_code] => 12345 | ||
+ | [tax_id_or_ssn] => asdfasdfasdf | ||
+ | [invoicer] => 0 | ||
+ | [req_docs] => 0 | ||
+ | [w9] => 0 | ||
+ | [mailok] => 1 | ||
+ | [trust_level] => 0 | ||
+ | [new_notification] => 0 | ||
+ | [latest_news] => 0 | ||
+ | [payout_approval] => 0 | ||
+ | [access_preset] => 0 | ||
+ | [custom1] => 0 | ||
+ | [custom2] => 0 | ||
+ | [custom3] => 0 | ||
+ | [custom4] => 0 | ||
+ | [custom5] => 0 | ||
+ | [remote_access] => 0 | ||
+ | ) | ||
+ | </pre> | ||
+ | |||
+ | ==Server Request/Response== | ||
+ | '''Request:''' | ||
<pre> | <pre> | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | <?xml version="1.0" encoding="ISO-8859-1"?> | ||
Line 18: | Line 88: | ||
</pre> | </pre> | ||
− | + | '''Response:''' | |
− | |||
<pre> | <pre> | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | <?xml version="1.0" encoding="ISO-8859-1"?> | ||
Line 75: | Line 144: | ||
</return> | </return> | ||
</ns1:list_aff_detailsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> | </ns1:list_aff_detailsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
[[Category:Offerit API Articles]] | [[Category:Offerit API Articles]] |
Revision as of 13:43, 9 December 2011
This function allows you to get all of the details for an affiliate. To use this function, you must make a SOAP call with the following parameters:
- loginid - The affiliate ID to get information from
NuSOAP Example
This example continues from the main article NuSOAP Example):
$values = Array( 'loginid' => 3, // The affiliate ID to get information from ); $result = $client->call('list_aff_details', $values, 'offeritapiadmin_wsdl');
Sample Output
Array ( [loginid] => 3 [username] => TestingAccount [password] => $1$afqK3zpl$AFVfbgs4YUyjgVEQyfmlN1 [payvia_type_id] => 1 [status] => 0 [pass_hash] => 8454040144e78f6dd9badb9.90502981 [join_date] => 1316550365 [inhouse] => 0 [api_key] => [rss_pass_code] => [firstname] => Adam [lastname] => Testing [email] => testing@toomuchmedia.com [date_posted] => 1316550365 [join_ip] => 10.10.10.73 [reviewed] => 0 [minimum_payout] => 50 [bonus] => 0 [bonus_used] => 0 [verify] => [reason] => [company] => TEsting [url] => http://testing.com [tel] => [icq] => 123123123123 [aim] => asdfasdfasd [msn] => [address1] => 123 adsflkasjflsakdhj [address2] => 2134 skdjfhasdkfjh [city] => kjdfhaskjfh [state] => as [country] => US [zip_code] => 12345 [tax_id_or_ssn] => asdfasdfasdf [invoicer] => 0 [req_docs] => 0 [w9] => 0 [mailok] => 1 [trust_level] => 0 [new_notification] => 0 [latest_news] => 0 [payout_approval] => 0 [access_preset] => 0 [custom1] => 0 [custom2] => 0 [custom3] => 0 [custom4] => 0 [custom5] => 0 [remote_access] => 0 )
Server Request/Response
Request:
<?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" mlns:tns="urn:offeritapiadmin_wsdl"> <SOAP-ENV:Body> <tns:list_aff_details xmlns:tns="urn:offeritapiadmin_wsdl"> <loginid xsi:type="xsd:int">3</loginid> </tns:list_aff_details> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Response:
<?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:offeritapiadmin_wsdl"> <SOAP-ENV:Body> <ns1:list_aff_detailsResponse xmlns:ns1="urn:offeritapiadmin_wsdl"> <return xsi:type="tns:AffDetails"> <loginid xsi:type="xsd:int">3</loginid> <username xsi:type="xsd:string">TestingAccount</username> <password xsi:type="xsd:string">$1$afqK3zpl$AFVfbgs4YUyjgVEQyfmlN1</password> <payvia_type_id xsi:type="xsd:int">1</payvia_type_id> <status xsi:type="xsd:int">0</status> <pass_hash xsi:type="xsd:string">8454040144e78f6dd9badb9.90502981</pass_hash> <join_date xsi:type="xsd:int">1316550365</join_date> <inhouse xsi:type="xsd:int">0</inhouse> <api_key xsi:type="xsd:string"></api_key><rss_pass_code xsi:type="xsd:string"></rss_pass_code> <firstname xsi:type="xsd:string">Adam</firstname><lastname xsi:type="xsd:string">Testing</lastname> <email xsi:type="xsd:string">testing@toomuchmedia.com</email> <date_posted xsi:type="xsd:int">1316550365</date_posted> <join_ip xsi:type="xsd:string">10.10.10.73</join_ip> <reviewed xsi:type="xsd:int">0</reviewed> <minimum_payout xsi:type="xsd:int">50</minimum_payout> <bonus xsi:type="xsd:int">0</bonus> <bonus_used xsi:type="xsd:int">0</bonus_used> <verify xsi:type="xsd:string"></verify> <reason xsi:type="xsd:string"></reason> <company xsi:type="xsd:string">TEsting</company> <url xsi:type="xsd:string">http://testing.com</url> <tel xsi:type="xsd:string"></tel> <icq xsi:type="xsd:string">123123123123</icq> <aim xsi:type="xsd:string">asdfasdfasd</aim> <msn xsi:type="xsd:string"></msn> <address1 xsi:type="xsd:string">123 adsflkasjflsakdhj</address1> <address2 xsi:type="xsd:string">2134 skdjfhasdkfjh</address2> <city xsi:type="xsd:string">kjdfhaskjfh</city> <state xsi:type="xsd:string">as</state> <country xsi:type="xsd:string">US</country> <zip_code xsi:type="xsd:int">12345</zip_code> <tax_id_or_ssn xsi:type="xsd:string">asdfasdfasdf</tax_id_or_ssn> <invoicer xsi:type="xsd:int">0</invoicer> <req_docs xsi:type="xsd:int">0</req_docs> <w9 xsi:type="xsd:int">0</w9> <mailok xsi:type="xsd:int">1</mailok> <trust_level xsi:type="xsd:int">0</trust_level> <new_notification xsi:type="xsd:int">0</new_notification> <latest_news xsi:type="xsd:int">0</latest_news> <payout_approval xsi:type="xsd:int">0</payout_approval> <access_preset xsi:type="xsd:int">0</access_preset> <custom1 xsi:type="xsd:string">0</custom1> <custom2 xsi:type="xsd:string">0</custom2> <custom3 xsi:type="xsd:string">0</custom3> <custom4 xsi:type="xsd:string">0</custom4> <custom5 xsi:type="xsd:string">0</custom5> <remote_access xsi:type="xsd:int">0</remote_access> </return> </ns1:list_aff_detailsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>