|
Do you want to create a
service to send automated updates to channel subscribers? Just follow these
3 simple steps!![]() |
![]() |
Remote Access API
The best thing about this service is that it gives you the option to not just send messages from the default web interface but also from your own website or webserver! But first you need to activate the API from the main control panel.
The Request
The request URL is:
http://brotherboard.com/channel/developer/
The request requires 3 GET parameters:
| channel | The name of the channel. |
|---|---|
| message | The message that needs to be passed to the subscribers. |
| hashcheck | The check for authentication. More details below. |
Generating the HashCheck
The hash check is generated using md5 function.
$hashcheck = md5($message . $secretKey);
Example
// Your channel name. $channelName = "developer"; // The message to be sent to all the subscribers. $message = "This example is for PHP, but java/python will also " . "work similarly."; // Your channel's secret key. You need to activate the API for this. $channelSecret = "a6dsada91jdkajda918s4iasda781as2"; // Generate the hascheck $hashcheck = md5($message . $channelSecret); // The complete request url $requestUrl = "http://brotherboard.com/channel/developer/" . "?message=" . $message . "&channel=" . $channelName . "&hashcheck=" . $hashcheck; // Make the request. // I am using cURL library, you can use anything you want :) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $requestUrl); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // If you want to add a timeout you can uncomment the following // statement. //curl_setopt($ch, CURLOPT_TIMEOUT, 50); $response = curl_exec($ch); curl_close($ch); echo $response;
Developer Channel
Oh yes, we have one already! SMS @channel subscribe developer to get the latest updates.
By the way I can also be contacted on manku.singhal[at]gmail.com. Do drop me a mail if you want some features or want to report a bug.

