Giter Site home page Giter Site logo

seven-io / python-client Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 286 KB

Official Python API Client for seven

Home Page: https://pypi.org/project/sms77api/

License: MIT License

Python 98.64% Shell 1.36%
sms text2speech hlr cnam mnp api-client sdk

python-client's Introduction

Python API Client

Installation

Make sure you have Python 3 installed.

pip3 install sms77api

Methods

def __init__(self, api_key: str, sent_with: str = 'Python'):
    pass


def analytics(self, params={}):
    pass


def balance(self, api_key: str = None):
    pass


def contacts(self, action: ContactsAction, params: dict = {}):
    pass


def hooks(self, action: HooksAction, params: dict = {}):
    pass


def journal(self, typ: JournalType, params: dict = {}):
    pass


def lookup(self, typ: LookupType, number: str, json: bool = False):
    pass


def pricing(self, format_: PricingFormat = PricingFormat.CSV, country: str = None):
    pass


def sms(self, to: str, text: str, params: dict = {}):
    pass


def status(self, msg_id: int):
    pass


def subaccounts(self, action: SubaccountsAction, params: dict = {}):
    pass


def validate_for_voice(self, number: str, callback: str = None):
    pass


def voice(self, to: str, text: str, params: dict = {}):
    pass

Examples

Retrieve balance associated with given API key

from sms77api.Sms77api import Sms77api

client = Sms77api("InsertYourSuperSecretApiKeyFromSms77")
print(client.balance())

Send an SMS and return a detailed JSON response

from sms77api.Sms77api import Sms77api
import os

client = Sms77api(os.environ.get('SMS77_API_KEY', 'FallbackValueIfMissing'))
print(client.sms('+491771783130', 'Hi friend!', {'json': True}))

Support

Need help? Feel free to contact us.

License

MIT

python-client's People

Contributors

cl77 avatar matthiez avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-client's Issues

Fix pip issue #8559

DEPRECATION: sms77api is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559

installation trouble shooting

Hello,

first of all thank you for the code. Unfortunately I am not able to install the package. If I am doing it as you recommend (with pip3 install sms77api) the package/folder which gets installed is empty. Can you give any advice?
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.