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)
Obtenha suas credenciais
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apigratis-sdk-python-1.0.9.tar.gz
.
File metadata
- Download URL: apigratis-sdk-python-1.0.9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0060ae21ea8f4eeba7d671f001ab1ee8d392c4cf4b7f38544ef0838255ab1c93 |
|
MD5 | 823d0642c4380aed4e0134fabb5f901f |
|
BLAKE2b-256 | d31b295603ef8afeae1119d3942a384940daeb1b557c4e5b73856c5d67c86d27 |
File details
Details for the file apigratis_sdk_python-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: apigratis_sdk_python-1.0.9-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52a5c75054829ea69344842c2ec64b6107d20fe1a4002aa1eaee5e2588374b65 |
|
MD5 | a36ad484226f4cb3deef219369479ba3 |
|
BLAKE2b-256 | fa3a8a34129c3df6f7df7d0980af07cc51485f93a97e31e2eb68e58efe1c865a |