Class api\controllers\SiteController
| Inheritance | api\controllers\SiteController » yii\rest\Controller |
|---|
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $enableCsrfValidation | api\controllers\SiteController |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| actionAddtocart() | Add to cart api | api\controllers\SiteController |
| actionCartOrder() | Cart order api | api\controllers\SiteController |
| actionExchange() | api\controllers\SiteController | |
| actionGetDoc() | Function to show documentaion this will show normal html output inside custom iframe | api\controllers\SiteController |
| actionGetError() | api\controllers\SiteController | |
| actionIndex() | api\controllers\SiteController | |
| actionIsEligable() | api\controllers\SiteController | |
| actionPageview() | Action for updating points according to page view on client sites | api\controllers\SiteController |
| actionUpdateMerchantOffer() | Update nerchantoffer api | api\controllers\SiteController |
| allowedDomains() | api\controllers\SiteController | |
| beforeAction() | api\controllers\SiteController | |
| behaviors() | api\controllers\SiteController |
Property Details
Method Details
Add to cart api
| public array actionAddtocart ( $merchantId, $token, $productId, $quantity, $amount ) | ||
| $merchantId | integer | |
| $token | string | |
| $productId | integer | |
| $quantity | integer | |
| $amount | float | |
| return | array | Result | status (success or error) | message |
|---|---|---|
Cart order api
| public array actionCartOrder ( $orderId, $token, $cartId ) | ||
| $orderId | integer | |
| $token | string | |
| $cartId | integer | |
| return | array | Result | status (success or error) | message |
|---|---|---|
| public void actionExchange ( $merchantId, $userId ) | ||
| $merchantId | integer | |
| $userId | integer | |
Function to show documentaion this will show normal html output inside custom iframe
| public void actionGetDoc ( $value ) | ||
| $value | ||
| public void actionGetError ( $value ) | ||
| $value | ||
| public void actionIndex ( ) |
| public void actionIsEligable ( ) |
Action for updating points according to page view on client sites
| public void actionPageview ( ) |
Update nerchantoffer api
| public array actionUpdateMerchantOffer ( $token, $percentOff, $points ) | ||
| $token | string | |
| $percentOff | integer | |
| $points | integer | |
| return | array | Result | status (success or error) | message |
|---|---|---|
| public static void allowedDomains ( ) |
| public mixed beforeAction ( $action ) | ||
| $action | ||
| return | mixed | $token is required param for every call, in case $token not exist in api call, it will give error message $token must be string $token is get from localStroge of client browser $token will store in client browser when user login at any client site |
|---|---|---|
| public void behaviors ( ) |