Belfabriek SMS API Documentation
General
End point: http://api.belfabriek.nl/sms/

method: POST

Parameters
Action: SEND
response_format = xml or json
action = send
username = username
password = password
destination = +31612345678
message = Lorem ipsum dolor sit…
schedule = now or timestamp (1369396721)

Legend Response
Action: GET
response_format = xml or json
action = get
username = username
password = password
timeperiod = 1367409521

Legend Response
        'success' => 1,
        'code_error' => 200,
        'message' => 'statistics 04-2013'
        'total-sms-sent' => 60,
        'monthly-sms-credits' => 50,
        'sms-via-api' =>53,
        'sms-via-web' =>7,
        'sms-debit' => 10,
        'total-cost' => 1,

        'success' => 1,
        'code_error'=> 200,
        'message' => 'no statistics in 04-2014,
        'total-sms-sent' => 0,
        'monthly-sms-credits' => 0,
        'sms-via-api' => 0,
        'sms-via-web' => 0,
        'sms-debit' => 0,
        'total-cost' => 0,
        'data' => 0,
    
Action: GET-HISTORY
response_format = xml or json
action = get-history
username = username
password = password
start-date = 1364817521
end-date = 1367409521

Legend
  • The parameters response_format, username and password have the same features like ACTION SEND
  • To get the history for your account you need to put the action = get-history
  • Start-date and end-date contains the period for your history messages. (UNIX timestamp)
  • The message received will be encode (urlencode)

Response
        ' success ' =>1,
        'code_error' => 200,
        'message' => 'history between period  2013-05-01 / 2013-06-01,
        'gsm' => gsm number,
        'sent-time' => 2013-05-01,
        'messages-sent' => urlencode(*string)

          
        'success' =>1,
        'code_error' => 200,
        'message' => 'No history between period 2014-05-01 / 2014-06-01,
        'data' => 0,