Field | Data Type | Description | Sample data |
---|---|---|---|
command | STRING | Action type | paymentGatewayCallback |
params | JSON Array | Data array |
Field | Data Type | Description | Sample data |
---|---|---|---|
referenceID | STRING | Transaction Reference ID | 1000207 |
txID | STRING | Transaction ID | 0xffcb84986c1edfb19b4dd8ddbecc3493d606fdcd1a1eaa12ab284a4879a68e67 |
amount | STRING | Transaction Amount | 0.00788599 |
amountReceive | STRING | Amount Received in destination address | 0.00796999 |
serviceCharge | STRING | Service Charge imposed in this transaction | 0.000001 |
address | STRING | Sender Address | 0xcda6b683d77c9441b57342bced45c1616ee6e8d7 |
type | STRING | Coin Type | ethereum |
{\"command\":\"paymentGatewayCallback\",\"params\":{\"referenceID\":\"1000207\",\"txID\":
\"0xffcb84986c1edfb19b4dd8ddbecc3493d606fdcd1a1eaa12ab284a4879a68e67\",\"amount\":\"0.00788599
ETH\",\"amountReceive\":\"0.00796999 ETH\”,\"serviceCharge\":\"\",\"address\":
\"0xcda6b683d77c9441b57342bced45c1616ee6e8d7\",\"status\":\"pending\",\"transactionDate
\":\"0\",\"transactionUrl\":\"https:\\/\\/ropsten.etherscan.io
\\/tx\\/0xffcb84986c1edfb19b4dd8ddbecc3493d606fdcd1a1eaa12ab284a4879a68e67\",\"type\":\"ethereum\"}}
Parameter | Data Type | Description | Sample Value |
---|---|---|---|
apikey | STRING | API Key can be obtained by login to Https://thenux.com/login.php | EyXo65nFiyqZKMh35EZelMspkasdim9sQ6I |
wallet_type | STRING | wallet_type | bitcoin/ethereum/usd2/myr2/thenuxcoin |
Parameter | Data Type | Description | Sample Value |
---|---|---|---|
Status | STRING | Response Code | ok |
message | STRING | Response Message | SUCCESS/ERROR |
result | result | Address Data | {new_address: (string)new_address} |
status : ok
message : SUCCESS
message_d : Address Successfully Generated
code : 1
result :
new_address : 2NByXFU7vCkMhBxiRozysQsyNcDmZwofnAn
curl -X "POST"
“https://thenux.com:5281/business/broadcast" \
-d “api_key=thenux_api_key” \
-d "business_id=xxxxx" \
-d “mobile_list=+60123456789,+601245556666” \
-d “tag=*destination_tag*” \
-d “message=message_to_send”
<?php
$postvars = [
'api_key' => "YOUR_API_KEY",
'business_id' => "YOUR_BUSINESS_ID",
'mobile_list' => array("phone_number_1","phone_number_2","phone_number_3"),
'tag' => "YOUR_TAG HERE",
'message' => "YOUR_MSG"
];
$url = "https://thenux.com:5281/business/broadcast";
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,json_encode($postvars));
curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT ,3);
curl_setopt($ch,CURLOPT_TIMEOUT, 20);
$response = curl_exec($ch);
curl_close ($ch);
?>
curl -X "POST" "https://thenux.com:5281/business/broadcast" \ -d "api_key=thenux_api_key" \ -d "business_id=xxxxx" \
<?php $ch = curl_init(); $postvars = [ 'api_key' => "YOUR_API_KEY", 'business_id' => "YOUR_BUSINESS_ID", 'mobile_list' => array("phone_number_1","phone_number_2","phone_number_3"), 'tag' => "YOUR_TAG HERE", 'message' => "YOUR_MSG" ]; $url = "https://thenux.com:5281/business/broadcast"; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST, 1); //0 for a get request curl_setopt($ch,CURLOPT_POSTFIELDS,$postvars); curl_setopt($ch,CURLOPT_POST, 1); curl_setopt($ch,CURLOPT_POSTFIELDS,json_encode($postvars)); curl_setopt($ch,CURLOPT_RETURNTRANSFER, true); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT ,3); curl_setopt($ch,CURLOPT_TIMEOUT, 20); ?> private void sendMessage() throws Exception { String url = "https://thenux.com:5281/business/broadcast"; URL obj = new URL(url); HttpsURLConnection con = (HttpsURLConnection) obj.openConnection(); }
Param | Data Type | Description | Sample |
---|---|---|---|
code | Integer | Response Code | 1 |
message | String | Message of the response | SUCCESS |
message_d | String | Description of the response | Messages sent |
result | Object | Results | - |
unregistered_users | JSON string | List of unregistered users | ["+601345678","+6034567896"] |
TheNux Inc.
2603 Camino Ramon Suite 200, San Ramon, CA 94583 USA
Email: support@thenux.com
Skype: support@thenux.com
DEVELOPERS