Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

SirBrucey/aaispy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Andrews & Arnold API wrapper for Python 3.5+

This package will allow you to access the (work-in-progress) Chaos API. Use cases could include scripts to monitor your data, VoIP or SIP2SIM usage.

Requirements

Python 3.5 or later Python-Requests (will be installed automatically using pip)

Installation

pip install aaispy

Usage

import aaispy

aa = aaispy.Chaos("username", "password") # use your normal credentials for control.aa.net.uk

Methods correspond to "commands" as defined in the API documentation, and any arguments are passed as JSON to the API. The method name is passed as the "command" parameter of the JSON object, and it will override any "command" argument set manually.

aa.info() # lists all the services associated to your account
aa.usage(sim={"ID": "1234"}) # displays call/SMS records for a particular SIM based in its ICCID
aa.usage(voip={"ID": "+44..."}) # same but for a VoIP line based on its phone number

License

MIT.

About

Python wrapper class around the Andrews & Arnold API.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages