Skip to main content

WITTY FLOW SMS PIP PACKAGE

Step 1: Install The Package Via Pip

Via Pip

 pip install witty-flow-sms

Step 2: Initialize

#IMPORT 
from witty_flow_sms import WittyFlowSms

APP_ID = XXXXXXXXXXXX
APP_SECRET = XXXXXXXX
client = WittyFlowSms(APP_ID, APP_SECRET)

Usage

Send Text Message

  // SEND SMS
  // sendMessage Takes 3 Params (phone, sender, message)
  // sender => string should not be more than 14 characters
  // phone => string should take the 0244XXXXXX format
  // message => string should not me more than 180 characters
  res = client.send_sms('0507565349', 'Possitech', 'Test Message')

  // OnSuccess Response
  {
    "status": "success",
    "code": 2020,
    "message": "Accpeted for delivery",
    "data": {
        "status": "accepted",
        "message_id": "ebb04f7f-147f-4d17-877b-8dd8af4ed2fe",
        "message": "New message",
        "date_created": "2020-08-24T00:17:09.000000Z",
        "direction": "MT",
        "from": "Ghana",
        "to": "233541348180",
        "type": "plain",
        "message_segments": 1,
        "cost": "0.03",
        "service_rate": "0.030000",
        "callback_url": null
    }
}

Send Flash Message

  // SEND SMS
  // sendMessage Takes 3 Params (phone, sender, message)
  // sender => string should not be more than 14 characters
  // phone => string should take the 0244XXXXXX format
  // message => string should not me more than 180 characters
  res = client.send_sms('0507565349', 'Possitech', 'Test Message')

  // OnSuccess Response
  {
    "status": "success",
    "code": 2020,
    "message": "Accpeted for delivery",
    "data": {
        "status": "accepted",
        "message_id": "ebb04f7f-147f-4d17-877b-8dd8af4ed2fe",
        "message": "New message",
        "date_created": "2020-08-24T00:17:09.000000Z",
        "direction": "MT",
        "from": "Ghana",
        "to": "233541348180",
        "type": "plain",
        "message_segments": 0,
        "cost": "0.03",
        "service_rate": "0.030000",
        "callback_url": null
    }
}

Get Sms Status

  // Get Sms Status
  // getSmsStatus Takes 1 Param (message_id)
  // message_id => string
  res = client.check_sms_status('21776c6f-3c84-40c0-b0a5-14c3b0c6f514')

  // OnSuccess Response
  {
    "status": "success",
    "code": 2000,
    "message": "Message retrieved",
    "data": {
        "message_id": "21776c6f-3c84-40c0-b0a5-14c3b0c6f514",
        "status": "delivered",
        "message": "New message",
        "date": "2020-08-23T23:54:04.000000Z",
        "readable_date": "Sun August 23, 2020 11:54:04 PM",
        "direction": "MT",
        "type": "1",
        "sender": "Ghana",
        "recipient": "233541348180",
        "message_segments": 1,
        "cost": "0.03",
        "rate": "0.030000",
        "billing": "charged"
    }
}

Get Account Balance

  res = client.get_account_balance()
  // OnSuccess Response
  {
    "status": "success",
    "code": 2000,
    "message": "Balance Retrieved",
    "data": {
        "balance": "19.19",
        "currency": "GHS"
    }
}

Metadata

Release files for witty-flow-sms 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for witty-flow-sms 1.0.2
File Interpreter ABI Platform Actions
witty_flow_sms-1.0.2-py3-none-any.whl Python 3 none any Details for witty_flow_sms-1.0.2-py3-none-any.whl

Release files / witty_flow_sms-1.0.2-py3-none-any.whl

Download URL witty_flow_sms-1.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e0dd83cd73b2450ebd86205cca6b9b4b9d76325bc86513de833fb7a66b535f6
BLAKE2b-256 checksum
How to use checksums
527b399fe65034167fcf9df37d418e2e08a192a79f93ef10cc3a4b9e739464a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1

Security for witty-flow-sms 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page