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.1.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: apigratis-sdk-python-1.1.4.tar.gz
  • Upload date:
  • Size: 4.6 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.1.4.tar.gz
Algorithm Hash digest
SHA256 f5c0d90c888bc0de8d2f2ca224dc683d39ac42945eb836aa6c7b053cdcdf1a68
MD5 e9b0fadde5a36500382852d48912af0b
BLAKE2b-256 848137a124cdbf27923e8a1f65b30f38411cd1d2d365c1bbcc418c364c5f7b1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apigratis_sdk_python-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 970f1056baf3dcf422a0d590cc30b67100dda4a25772de21ea3ddf553813cd6c
MD5 0c22b056c4eebbaeea436e37c6dd23f5
BLAKE2b-256 72007c3caf97dd992a63d7875bbf9673717f52992cbd6d477a255b0f6d7c031e

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