Preparations before integration:
1、Provide Email used when registering an account with Smile One
2、Smile One account UID (Contact Smile One team to obtain)
1、Provide Email used when registering an account with Smile One
2、Smile One account UID (Contact Smile One team to obtain)
Sandbox: disabled
Production: https://www.smile.one
Different countries have different URLs for recharging, and country abbreviations need to be added after the URL. This RUL is the same as the multi-country of smile.one store.
For example:
Brazil: https://www.smile.one/br
Russia: https://www.smile.one/ru
Philippines: https://www.smile.one/ph
email: [email protected]
login password: 111111
uid: 1041302
key: 7f663422060edd50b326b8a570639dac
userid: 17366
zoneid: 22001
Sandbox information, only for sandbox
All fields are sorted by key value and then encrypted by md5 twice, sign=md5(md5(“key1=value1&key2=value2&$key”)) The encryption key is spliced directly after the string.
Unless otherwise noted, all parameters passed need to be encrypted
$sign_arr= array(
'uid' => $uid,
'product' => $product,
'time' => $time,
..... => ....
);
$m_key = "1234567890";
ksort($sign_arr);
$str = '';
foreach ($sign_arr as $k => $v) {
$str.=$k.'='.$v.'&';
}
$str = $str.$m_key;
return md5(md5($str));
API Link: API URL/smilecoin/api/querypoints
Request method: POST
Content-Type: form-data
Request params:
Parameters | Mandatory | Type | Description |
---|---|---|---|
uid | Yes | String | UID provided by Smile One |
Yes | String | Email used when registering an account with Smile One | |
product | Yes | String | Name of product purchased by agent (mobilelegends) |
time | Yes | Int | Request time |
sign | Yes | String | Sign(Valid for 5 minutes) |
Return example:
Success return:
{
"status": 200,
"message": "success",
"smile_points": "60575.0"
}
API Link: API URL/smilecoin/api/product
Request method: POST
Content-Type: form-data
Request params:
Parameters | Mandatory | Type | Description |
---|---|---|---|
uid | Yes | String | UID provided by Smile One |
Yes | String | Email used when registering an account with Smile One | |
product | Yes | String | Name of product purchased by agent (mobilelegends) |
time | Yes | Int | Request time |
sign | Yes | String | Sign(Valid for 5 minutes) |
Return example:
Success return:
[
{
"name": "mobilelegends",
},
{
"name": "bigo",
},
{
"name": "hago",
},
{
"name": "ragnarokm",
},
{
"name": "freefirediamantes",
},
{
"name": "loveanddeepspace",
},
{
"name": "watcherofrealms",
},
{
"name": "sweetdance",
},
{
"name": "supersus",
},
{
"name": "ragnarokm",
},
{
"name": "pubgmobile",
},
{
"name": "tinder",
},
{
"name": "hok",
},
{
"name": "honkai",
},
{
"name": "hago",
},
{
"name": "hago",
},
]
API Link: API URL/smilecoin/api/productlist
Request method: POST
Content-Type: form-data
Request params:
Parameters | Mandatory | Type | Description |
---|---|---|---|
uid | Yes | String | UID provided by Smile One |
Yes | String | Email used when registering an account with Smile One | |
product | Yes | String | Name of product purchased by agent (mobilelegends) |
time | Yes | Int | Request time |
sign | Yes | String | Sign(Valid for 5 minutes) |
Return example:
Success return:
{
"status": 200,
"message": "success",
"data": {
"product": [
{
"id": "13",// The productid required for the purchase api
"spu": "mobilelegends BR 78 &8 Diamond",
"price": "5.00"
},
{
"id": "23",
"spu": "mobilelegends BR 156&16 Diamond",
"price": "10.00"
},
......
]
}
}
API Link: API URL/smilecoin/api/getserver
Request method: POST
Content-Type: form-data
Only some products can be used, you can check the page of this product on the smile.one official website to confirm whether the interface can be used for pre-docking products.
Request params:
Parameters | Mandatory | Type | Description |
---|---|---|---|
Yes | String | Email used when registering an account with Smile One | |
uid | Yes | String | UID provided by Smileone |
product | Yes | String | Name of product purchased by agent (ragnarokm) |
time | Yes | Int | Request time |
sign | Yes | String | Sign(Valid for 5 minutes) |
Return example:
Success return:
{
"status": 200,
"server_list": [
{
"server_name": "Eternal Love",
"server_id": "96001"
},
{
"server_name": "Destiny's Promise",
"server_id": "96001002"
}
],
"message": ""
}
API Link: API URL/smilecoin/api/getrole
Request method: POST
Content-Type: form-data
Freefire products are special, userid and zoneid pass the same json string, for example: {"uid":"6********4","username":"Ch****** LI"," bornAt":"1992-02-22","cpf":"2**.5**.***-*2"}
Request params:
Parameters | Mandatory | Type | Description |
---|---|---|---|
Yes | String | Email used when registering an account with Smile One | |
uid | Yes | String | UID provided by Smileone |
userid | Yes | String | UID to be topped up |
zoneid | Yes | String | ZoneID that needs to be recharged, if there is no ZoneID, please fill in userid |
product | Yes | String | Name of product purchased by agent (mobilelegends) |
productid | Yes | String | Product ID |
time | Yes | Int | Request time |
sign | Yes | String | Sign(Valid for 5 minutes) |
Return example:
"id_change_price_info" is a unique fee increase point for Indonesian users."product_id" is the product ID, and "change_price" is the fee increase point.
Success return:
{
"status": 200,
"username": "username",
"zone": 1,
"change_price": 1.3,
"use": "b",
"message": "success",
"id_change_price_info":[{"product_id":13,"change_price":1.55},{"product_id":23,"change_price":1.5},{"product_id":25,"change_price":1.47},{"product_id":26,"change_price":1.45},{"product_id":27,"change_price":1.45},{"product_id":28,"change_price":1.45},{"product_id":29,"change_price":1.45},{"product_id":30,"change_price":1.45},{"product_id":33,"change_price":1.58},{"product_id":16642,"change_price":1.52}]
}
API Link: API URL/smilecoin/api/createorder
Request method: POST
Content-Type: form-data
Freefire products are special, userid and zoneid pass the same json string, for example: {"uid":"6********4","username":"Ch****** LI"," bornAt":"1992-02-22","cpf":"2**.5**.***-*2"}
Request params:
Parameters | Mandatory | Type | Description |
---|---|---|---|
Yes | String | Email used when registering an account with Smile One | |
uid | Yes | String | UID provided by Smileone |
userid | Yes | String | UID to be topped up |
zoneid | Yes | String | ZoneID that needs to be recharged, if there is no ZoneID, please fill in userid |
product | Yes | String | Name of product purchased by agent (mobilelegends) |
productid | Yes | String | Product ID |
time | Yes | Int | Request time |
sign | Yes | String | Sign(Valid for 5 minutes) |
Return example:
Success return:
{
"status": 200,
"message": "success",
"order_id": '*******'
}