SDK for consumption of JáCotei Api
Project description
# jacotei-api-sdk-python3
## Exemplos ##
Publicacao de 1000 ofertas
```Python
#!/usr/bin/python3
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({
'client_id':'xxxxx',
'access_token':'xxxx'},
'https://webapisb.jacotei.com.br/publisher/v1')
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.link = 'http://aasdfaf.com/asdflasdf'
offer.images = ['http://aasdfaf.com/asdflasdf.jpg']
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)
try:
offers_result = offers_api.update_offers_using_post(offers = offer_request)
print (vars(offers_result))
except BaseException as e:
print(e.msg)
```
## Exemplos ##
Publicacao de 1000 ofertas
```Python
#!/usr/bin/python3
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({
'client_id':'xxxxx',
'access_token':'xxxx'},
'https://webapisb.jacotei.com.br/publisher/v1')
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.link = 'http://aasdfaf.com/asdflasdf'
offer.images = ['http://aasdfaf.com/asdflasdf.jpg']
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)
try:
offers_result = offers_api.update_offers_using_post(offers = offer_request)
print (vars(offers_result))
except BaseException as e:
print(e.msg)
```
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
jacotei_api-1.0.0.tar.gz
(6.1 kB
view details)
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 jacotei_api-1.0.0.tar.gz.
File metadata
- Download URL: jacotei_api-1.0.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b383e9296d016addd21278a30ad7e0fc7c04f06d2502b0dd03cfcdf56a943a3c
|
|
| MD5 |
5628d50daaae2d72b956ed3364fe3e34
|
|
| BLAKE2b-256 |
d3089f49519f9774f0a4af477f18a89a6d894ff7a6549ba127e0df9723bb304d
|
File details
Details for the file jacotei_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jacotei_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4315e3f29fb4be480552f1d4040770dc0c39a87d02610f695a2589614de1db5e
|
|
| MD5 |
02448e9aee78c7c893d33bf7d08868de
|
|
| BLAKE2b-256 |
749fa81e239080d9d9243d8f60f6e3c508ee1bec78880bee6bef6415724f2c07
|