Skip to main content

SDK for consumption of JáCotei Api

Project description

# jacotei-api-sdk-python3

## Exemplos ##

Publicacao de 1000 ofertas


import json

from jacotei_api_v1 import *
from jacotei_api_v1.api import *
from jacotei_api_v1.model import *
from jacotei_api_v1.client import ApiClient;

apiClient = client.ApiClient({

offers_api = OffersApi.OffersApi(apiClient)
offer_request = OfferRequest.OfferRequest()
offer_request.offers = []

for i in range(0, 1000):
offer = Offer.Offer()
offer.sku = i
offer.available = True;
offer.title = 'Produto '+str(i) = ''
offer.images = ['']
offer.categories = ['Categoria','Subcategoria','Sub subcategoria']
price = OfferPrice.OfferPrice()
price.price = 1.99
price.installment = 1
price.installment_value = 1.99
offer.prices = [price]
offer_request.offers .append(offer)

offers_result = offers_api.update_offers_using_post(offers = offer_request)
print (vars(offers_result))
except BaseException as e:


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jacotei-api, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size jacotei_api-1.0.0-py3-none-any.whl (10.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jacotei_api-1.0.0.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page