Uma API wrapper em Python para utilização com a plataforma Gameflip.
Project description
Gameflip API
Uma API wrapper em Python para utilização com a plataforma Gameflip. Facilita a integração via script, para automatizar operações, consultar dados e interagir com a Gameflip de forma programática.
🧰 Funcionalidades
- Conexão autenticada com a Gameflip via chave e segredo (
API_KEY,API_SECRET) - Métodos para executar operações comuns (por exemplo: listagem de produtos, criação de ofertas, consulta de histórico)
- Interface simples em Python para agilizar automações
- Código open-source, fácil de estender para necessidades específicas
🚀 Começando
Pré-requisitos
-
Python (versão compatível — idealmente 3.8+)
-
Conta na Gameflip e acesso à API (chave + segredo)
-
Variáveis de ambiente configuradas:
export GFAPI_KEY=<sua_chave_aqui> export GFAPI_SECRET=<seu_segredo_aqui>
(No Windows:
set GFAPI_KEY=<…>,set GFAPI_SECRET=<…>)
Instalação
pip install gameflip-api
Uso básico
Exemplo no arquivo example.py (ajuste conforme a sua necessidade):
import os
from pprint import pprint
from dotenv import load_dotenv
from gameflip_api.api import GameflipAPI
load_dotenv()
print("Listing results:")
listing_response = GameflipAPI.listing_search(digital=True, limit=1)
pprint(listing_response.json())
gameflip_api = GameflipAPI(os.getenv('GFAPI_KEY'), os.getenv('GFAPI_SECRET'))
print("My profile info:")
pprint(gameflip_api.profile().json())
📦 Estrutura do Projeto
src/gameflip_api/— código-fonte da bibliotecaexample.py— script de demonstração de usotest.py— arquivo para testes rápidosrequirements.txt— dependências do Python
🤝 Contato
Se tiver dúvidas, sugestões ou quiser colaborar:
- Crie uma issue no próprio repositório
- Envie um pull request com descrições claras das alterações
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gameflip_api-1.0.1.tar.gz.
File metadata
- Download URL: gameflip_api-1.0.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
885a308fea43bb1f965fdc6d37f755dee989133fe424294ca231d0a6b2dbfaf9
|
|
| MD5 |
9c49c279df91f42495f90492bf8ece1d
|
|
| BLAKE2b-256 |
640346b29e297f4e4670893973a35ee1c3228263248d5edb1e3f45a043fbc90a
|
File details
Details for the file gameflip_api-1.0.1-py3-none-any.whl.
File metadata
- Download URL: gameflip_api-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41197aa44533ee0b20cdfcad878b7b50e99dea9cfe65616996f46c4e75359868
|
|
| MD5 |
6420ede1f37688b2e437c08162b1b6c3
|
|
| BLAKE2b-256 |
cfccb8820f9e810a14ca70a153a6510e22bf890835cabc8b7c0a25553557d929
|