Download the PHP package magictelecom/magictelecomapi without Composer
On this page you can find all versions of the php package magictelecom/magictelecomapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download magictelecom/magictelecomapi
More information about magictelecom/magictelecomapi
Files in magictelecom/magictelecomapi
Package magictelecomapi
Short Description Magic Telecom API
License MIT
Homepage https://www.magictelecom.com/
Informations about the package magictelecomapi
MagicTelecomAPILib
This API SDK was automatically generated by APIMATIC BETA v2.0
How To Configure:
The generated code might need to be configured with your API credentials. To do that, provide the credentials and configuration values as a constructor parameters for the controllers
How To Build:
The generated code uses a PHP library namely UniRest. The reference to this library is already added as a composer dependency in the generated composer.json file. Therefore, you will need internet access to resolve this dependency.
How To Use:
For using this SDK do the following:
1. Open a new PHP >= 5.3 project and copy the generated PHP files in the project
directory.
2. Use composer to install the dependencies. Usually this can be done through a
context menu command "Instal (dev)".
3. Import classes from your file in your code where needed for example,
use MagicTelecomAPILib\Controllers\UsersController;
4. You can now instantiate controllers and call the respective methods.
Magic SDK examples
1. Get all accounts
You can get a limit result using parameters like page, limit, and filters. Take a look to the API doc. Here you have an example.
2. Create an account
This is a full response example.
3. Get an account
If the account doesn't exist, you gonna get this message:
Can't accomplish this action, exception: [Resource not found]
4. Update an account
If the account doesn't exist, you gonna get this message:
Can't accomplish this action, exception: [Resource not found]
5. Delete an account
6. Get account access tokens
7. Create account access tokens list
8. Get an account access tokens
9. Update an account access tokens
10. Delete an account access tokens
11. Get the list of caller locations for an account
12. Create a caller locations for an account
13. Delete caller locations for an account
14. Get a caller locations for an account by Id
15. Update a caller locations for an account by Id
16. Delete a caller locations for an account by Id
17. Get the cart list for an account
18. Create a cart for an account
19. Delete all the cart for an account
20. Get a cart for an account by Id
21. Delete a cart for an account by Id
22. Create cart items
Creating a trunk item
Create Location Item
Create Did Item
Create Trunk Channels Item
23. Add an Item to cart
This is the full response (Trunk Item) example
24. Get the cart items list
25. Delete the cart items list
26. Get a cart item
27. Delete a cart item
28. Checkout a Cart
This is the full response (Checkout Cart) example
29. Get Order status
30. Get the list of cdr request for an account
31. Create a cdr for an account
32. Delete the list of cdr request for an account
33. Delete a cdr for an account by id
34. Get the list of numbers (Dids) for an account
35. Delete the list of numbers (Dids) for an account
36. Get a telephone number (Did) for an account
37. Update a telephone numbers (Dids) for an account
38. Delete a telephone numbers (Dids) for an account
All versions of magictelecomapi with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
apimatic/unirest-php Version dev-master