Socket
Book a DemoInstallSign in
Socket

apigratis-sdk-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apigratis-sdk-python

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

1.1.7
pipPyPI
Maintainers
1

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

UpServices availableDescriptionFreeBetaStable
YesWhatsAppServiceAPI do WhatsAppYesYesYes
YesSMSAPI de SMS .YesYesYes
YesReceita Data CNPJAPI Dados CNPJ Receita.YesYesYes
YesReceita Data CPFAPI Dados de CPF Serasa.YesYesYes
YesCorreiosServiceAPI Busca encomendas Correios Brazil.YesYesYes
YesCEPLocationAPI CEP Geolocation + IBGE Brazil.YesYesYes
YesVehiclesServiceAPI Placa Dados.YesYesYes
YesFipeServiceAPI Placa FIPE.YesYesYes

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
    sendText = Service().whatsapp(json.dumps({
        "action": "sendText",
        "credentials": {
            "DeviceToken": "SEU_DEVICE_TOKEN",
            "BearerToken": "SEU_BEARER_TOKEN",
        },
        "body": {
            "text": "Hello World for Python",
            "number": "5531994359434",
            "time_typing": 1
        }
    }))

    #sendFile
    sendFile = Service().whatsapp(json.dumps({
        "action": "sendFile",
        "credentials": {
            "DeviceToken": "SEU_DEVICE_TOKEN",
            "BearerToken": "SEU_BEARER_TOKEN",
        },
        "body":  {
            "number" : "5531994359434",
            "path" : "https://assets.nagios.com/downloads/nagiosxi/docs/Installing_The_XI_Linux_Agent.pdf",
            "options" : {
                "caption": "texto do caption para arquivo",
                "createChat": True,
                "filename": "arquivo X"
            }
        }
    }))

    print(sendFile)

if __name__ == "__main__":
    whatsapp()

Vehicles Data Service

from apigratis.Service import Service
import json

def vehicles():

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

    print(dados)

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():

    dados = Service().cnpj(json.dumps({
        "action": "cnpj",
        "credentials": {
            "DeviceToken": "SEU_DEVICE_TOKEN",
            "BearerToken": "SEU_BEARER_TOKEN",
        },
        "body": {
            "cnpj": "44.959.669/0001-80",
        }
    }))

    print(dados)

if __name__ == "__main__":
    cnpj()

Keywords

python

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.