MagicTelecomAPILib
This API SDK was automatically generated by APIMATIC v2.0
How To Configure:
The generated code might need to be configured with your API credentials. To do that, open the file "Configuration.js" and edit it's contents.
How To Build:
The generated code relies on AngularJS framework being available .
How To Use:
The following shows how import the controllers and use:
-
Add the folder 'MagicTelecomAPILib' into your to your scripts folder e.g scripts.
-
Import the reference to these files inside the appropriate html file such as index.html. The configuration.js file should be imported before the other files.
<script src="scripts/MagicTelecomAPILib/Configuration.js"></script> <script src="scripts/MagicTelecomAPILib/APIHelper.js"></script> <script src="scripts/MagicTelecomAPILib/Http/Client/HttpContext.js"></script> <script src="scripts/MagicTelecomAPILib/Http/Client/RequestClient.js"></script> <script src="scripts/MagicTelecomAPILib/Http/Request/HttpRequest.js"></script> <script src="scripts/MagicTelecomAPILib/Http/Response/HttpResponse.js"></script> <script src="scripts/MagicTelecomAPILib/Controllers/UsersController.js"></script> <script src="scripts/MagicTelecomAPILib/Controllers/AccountsController.js"></script> <script src="scripts/MagicTelecomAPILib/Controllers/DidsController.js"></script> <script src="scripts/MagicTelecomAPILib/Controllers/DidsProductsController.js"></script> <script src="scripts/MagicTelecomAPILib/Models/BaseModel.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Cdrs.js"></script> <script src="scripts/MagicTelecomAPILib/Models/CartCheckoutForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Checkout.js"></script> <script src="scripts/MagicTelecomAPILib/Models/TokenForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/AccountForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/CdrForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/TrunkForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Trunk.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Routing.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Endpoint.js"></script> <script src="scripts/MagicTelecomAPILib/Models/CallerLocation.js"></script> <script src="scripts/MagicTelecomAPILib/Models/CallerLocationForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Account.js"></script> <script src="scripts/MagicTelecomAPILib/Models/TelephoneNumberForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/ItemForm.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Item.js"></script> <script src="scripts/MagicTelecomAPILib/Models/RoutingBase.js"></script> <script src="scripts/MagicTelecomAPILib/Models/TelephoneNumber.js"></script> <script src="scripts/MagicTelecomAPILib/Models/Token.js"></script> -
Inject the module into your main module e.g:
var myApp = angular.module('myApp', ['MagicTelecomAPILib'])
-
To use a generated factory in your controller, injection could be as follows :
myApp.controller('PageCtrl',function($scope,UsersController) {
}