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
referralprogram [2018/05/04 10:28]
Dmitry Tserashonak [CreateReferralProgram method]
referralprogram [2018/05/04 10:36]
Dmitry Tserashonak
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