Skip to main content

A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma.

Project description

SDK Python - APIGratis by APIBrasil

Conjunto de API, para desenvolvedores.

Transforme seus projetos em solucoes inteligentes com nossa API. Com recursos como API do WhatsApp, geolocalizacao, rastreamento de encomendas, verificacao de CPF/CNPJ e mais, voce pode criar solucoes eficientes e funcionais.

Como instalar

pip install apigratis-sdk-python

Canais de suporte (Comunidade)

WhatsApp Group Telegram Group

Obtenha suas credenciais

https://apibrasil.com.br

Mais informacoes

https://pypi.org/project/apigratis-sdk-python

Servicos de API disponiveis

Up Services available Description Free Beta Stable
Yes WhatsAppService API do WhatsApp Gratuita. Yes Yes Yes
Yes Receita Data CNPJ API Dados CNPJ Receita. Yes Yes Yes
Yes Receita Data CPF API Dados de CPF Serasa. Yes Yes Yes
Yes CorreiosService API Busca encomendas Correios Brazil. Yes Yes Yes
Yes CEPLocation API CEP Geolocation + IBGE Brazil. Yes Yes Yes
Yes VehiclesService API Placa Dados. Yes Yes Yes
Yes FipeService API Placa FIPE. Yes Yes Yes

Como utilizar

Voce pode utilizar todos os endpoints da API do WhatsApp, basta mudar o action e o body

Documentacoes

https://apibrasil.com.br/documentacoes

WhatsApp Service

from apigratis.Service import Service
import json

def whatsapp():

    sendText = Service().whatsapp(json.dumps({
        "action": "sendText",
        "credentials": {
            "DeviceToken": "SEU_DEVICE_TOKEN",
            "BearerToken": "SEU_BEARER_TOKEN",
        },
        "body": {
            "message": "Hello World for Python",
            "phone": "5531994359434",
            "time_typing": 1
        }
    }))

    print(sendText)

if __name__ == "__main__":
    whatsapp()

Vehicles Data Service

from apigratis.Service import Service
import json

def vehicles():

    vehicle = Service().vehicles(json.dumps({
        "action": "dados",
        "credentials": {
            "DeviceToken": "SEU_DEVICE_TOKEN",
            "BearerToken": "SEU_BEARER_TOKEN",
        },
        "body": {
            "placa": "OQH3065",
        }
    }))

    print(vehicle)

if __name__ == "__main__":
    vehicles()

Vehicles FIPE Service

from apigratis.Service import Service
import json

def fipe():

    vehicle = Service().vehicles(json.dumps({
        "action": "fipe",
        "credentials": {
            "DeviceToken": "SEU_DEVICE_TOKEN",
            "BearerToken": "SEU_BEARER_TOKEN",
        },
        "body": {
            "placa": "OQH3065",
        }
    }))

    print(vehicle)

if __name__ == "__main__":
    fipe()

Dados CNPJ Service

from apigratis.Service import Service
import json

def cnpj():

    vehicle = Service().cnpj(json.dumps({
        "action": "/",
        "credentials": {
            "DeviceToken": "SEU_DEVICE_TOKEN",
            "BearerToken": "SEU_BEARER_TOKEN",
        },
        "body": {
            "placa": "OQH3065",
        }
    }))

    print(vehicle)

if __name__ == "__main__":
    cnpj()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apigratis-sdk-python-1.0.8.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

apigratis_sdk_python-1.0.8-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file apigratis-sdk-python-1.0.8.tar.gz.

File metadata

  • Download URL: apigratis-sdk-python-1.0.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for apigratis-sdk-python-1.0.8.tar.gz
Algorithm Hash digest
SHA256 bc5915edd059638662d0cf64ecbe7fc920276628de71b5ac03ba29bb5e78726c
MD5 ce2f100af674fcd03f99e8a298f2f86d
BLAKE2b-256 a1824f793f0008f7b409230798753d59a3f536ea3b05ed38e529a1eb048020bf

See more details on using hashes here.

File details

Details for the file apigratis_sdk_python-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for apigratis_sdk_python-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 429c3c76c6a1f1f15b49d0b2b45110c4cc34f71309c317c2ac843bbb5cd7501f
MD5 526277725cd01d799bffb532f64febaf
BLAKE2b-256 3520279ed1d7cce6398f1c0fad0a49e989953649e73663de8caf250e55fc84d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page