Simple SDK for use the Open API's of sunsky-online.com
Project description
Simple SDK for use the Open API’s of sunsky-online.com
Full documentation at: https://www.sunsky-online.com/base/doc!view.do?code=openapi
Installation
You can add in your requirements.txt:
pysunsky==1.0
or you can link the github:
git+https://github.com/progressify/pysunsky
Usage
Create a file named config.ini
[SUNSKY] key = examplekey123@something secret = examplesecret123
Replace the sample data with your sunsky credential.
If the config.ini file is located in the same directory of your script you can call the class directly:
open_api_service = OpenApiService()
url_products = "http://www.sunsky-api.com/openapi/product!search.do"
parameters = {'gmtModifiedStart': '10/31/2012'}
result = open_api_service.call(url_products, parameters)
Otherwise you can specify a custom (relative or absolute) path:
open_api_service = OpenApiService(config_path='./path-of-your-config-file/')
url_products = "http://www.sunsky-api.com/openapi/product!search.do"
parameters = {'gmtModifiedStart': '10/31/2012'}
result = open_api_service.call(url_products, parameters)
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
pysunsky-1.0.1.tar.gz
(2.1 kB
view details)
File details
Details for the file pysunsky-1.0.1.tar.gz.
File metadata
- Download URL: pysunsky-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0716905c9d7871af5d6c0f1a935da924eb86727a541b5e6e7a97ab285d0809c7
|
|
| MD5 |
80acda3283071d89850cc8070ecbcd9f
|
|
| BLAKE2b-256 |
35c0742ac2a1441735d106721a8bbf804a7ca2801dd213b37e0bb85ebc41e190
|