Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apibrasil/apigratis-sdk-python
A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma
https://github.com/apibrasil/apigratis-sdk-python
apibrasil apigratis pip python3 sdk-python tools whatsapp
Last synced: 2 months ago
JSON representation
A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma
- Host: GitHub
- URL: https://github.com/apibrasil/apigratis-sdk-python
- Owner: APIBrasil
- License: mit
- Created: 2023-05-29T20:01:17.000Z (over 1 year ago)
- Default Branch: stable
- Last Pushed: 2023-06-02T18:11:39.000Z (over 1 year ago)
- Last Synced: 2024-05-21T07:26:29.142Z (8 months ago)
- Topics: apibrasil, apigratis, pip, python3, sdk-python, tools, whatsapp
- Language: Python
- Homepage: https://apigratis.com.br
- Size: 145 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://img.shields.io/badge/WhatsApp-Group-25D366?logo=whatsapp)](https://chat.whatsapp.com/KsPendingrUGIPWvUBYAjI1ogaGs)
[![Telegram Group](https://img.shields.io/badge/Telegram-Group-32AFED?logo=telegram)](https://t.me/apigratisoficial)## 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 | Yes | Yes | Yes |
| Yes | SMS | API de SMS . | 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
```python
from apigratis.Service import Service
import jsondef 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
```python
from apigratis.Service import Service
import jsondef 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
```python
from apigratis.Service import Service
import jsondef 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
```python
from apigratis.Service import Service
import jsondef 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()
```