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.1.0.tar.gz
.
File metadata
- Download URL: apigratis-sdk-python-1.1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c229532f82753f3ea836e33da660f30c0b7052cbb2d88d8b21f193930b43e719 |
|
MD5 | 1d26102b4d13f731d686ac945df409da |
|
BLAKE2b-256 | 4c2e5056be0d2f22d8e1d43761fd907463f184669acef2be3c1dff45cc62f025 |
File details
Details for the file apigratis_sdk_python-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: apigratis_sdk_python-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 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 | 18d21f4c649a01d08aac0638903baecdbd76ddb8426717c37c01ada9cb3390b6 |
|
MD5 | ca8d2b762085b09a1b62faf8b398d86e |
|
BLAKE2b-256 | fe5f3056e221eddbc233348e9802a2cea9b835b8d73cf22d0c3c4d51fff11654 |