telekom_sdk

Telekom developergarden API Client

First Implementation of Telekom REST API in nodejs:


var telekom_service_client = require("./index");
var c = new telekom_service_client("sandbox").authorize("username","password", function(err,client){
    if(err) console.error(err);
    else {
        /*
        c.quota({
            moduleID: "SmsSandbox"
        }, function(err, success){
            console.log(err);
            console.log(util.inspect(success,false,null,true));
        });
        */
        c.sendSms({
            number: "+0000011",
            message: "test message from node.js",
          originator: 'nodejs client',
        }, function(err, success){
            if(err){
                console.log(err);
            } else {
                console.log(success);
            }           
        });
    }
});