User Tools

Site Tools


referralprogram

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
referralprogram [2018/05/04 10:28]
Dmitry Tserashonak
referralprogram [2018/05/04 10:36]
Dmitry Tserashonak
Line 76: Line 76:
 //​CreateReferralProgram //​CreateReferralProgram
 $request = array(); $request = array();
-$request['​AccountPersonData'​]['​PersonAccountID'​] = '1406'; +$request['​AccountPersonData'​]['​PersonAccountID'​] = '1234'; 
-$request['​AccountPersonData'​]['​PersonRUID'​] = '126';+$request['​AccountPersonData'​]['​PersonRUID'​] = '456';
 $request['​ReferralUID'​] = '​B192E862-D8CB-45C9-853A-0DC1A788C555';​ $request['​ReferralUID'​] = '​B192E862-D8CB-45C9-853A-0DC1A788C555';​
 $request['​ReferralProgramID'​] = '​666';​ $request['​ReferralProgramID'​] = '​666';​
Line 86: Line 86:
 { {
     $result = $wsRequest->​Send('​CreateReferralProgram'​);​     $result = $wsRequest->​Send('​CreateReferralProgram'​);​
 +}
 +</​code>​
 +\\
 +
 +==== LogReferralAction method ====
 +This method’s purpose is to log Referral Program Action.
 +
 +** Input parameters of the method are: **
 +
 +^ Name         ^ Type        ^ Required ^ Example ​              ^ Description ​       ^
 +| ReferralUID | string(36) ​ | * | B192E862-D8CB-45C9-853A-0DC1A788C431 | Referral Program UID |
 +| HTTPReferer | string(100) | * | "​google.com" ​         | HTTPReferer |
 +| RemoteIP ​   | string(100) | * | "Test 1 Title" ​         | Client IP address |
 +
 +**Output parameters of the method are:**
 +
 +^ Name         ^ Type   ^ Description ​           ^
 +| ReferralLogID | string | Referral Action Log ID |
 +
 +
 +**Signature:​**
 +
 +ReferralUID + HTTPReferer + RemoteIP + Key
 +
 +** PHP Example **
 +<code php>
 +//​LogReferralAction
 +$request = array();
 +$request['​ReferralUID'​] = '​D08B90ED-6643-467A-AD1E-32B77CCF640E';​
 +$request['​HTTPReferer'​] = '​google.cz';​
 +$request['​RemoteIP'​] = '​127.0.0.2';​
 +
 +if($wsRequest->​Prepare_Data($request))
 +{
 +    $result = $wsRequest->​Send('​LogReferralAction'​);​
 } }
 </​code>​ </​code>​
referralprogram.txt · Last modified: 2018/05/04 10:36 by Dmitry Tserashonak