Skip to main content

Simple SDK for use the Open API's of sunsky-online.com

Project description

<img src=”https://progressify.dev/img/progressify-logo.png” alt=”logo” height=”120” align=”right” />

# Sunsky Python API Service

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

[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/progressify/sunsky-python-api-service/graphs/commit-activity) [![Paypal Donate](https://img.shields.io/badge/PayPal-Donate%20to%20Author-blue.svg)](https://www.paypal.me/progressify) [![Satispay Donate](https://img.shields.io/badge/Satispay-Donate%20to%20Author-red.svg)](https://tag.satispay.com/progressify) [![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)](https://github.com/progressify/sunsky-python-api-service/issues)

## Installation

You can add in your requirements.txt:

` git+https://github.com/progressify/pysunsky `

I will publish also on pip, follow me for updates :)

## 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


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.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file pysunsky-1.0.tar.gz.

File metadata

  • Download URL: pysunsky-1.0.tar.gz
  • Upload date:
  • Size: 2.3 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

Hashes for pysunsky-1.0.tar.gz
Algorithm Hash digest
SHA256 e8490250e8a70a523ba8eda09492c69e86750cce866d188810e327d6ca721068
MD5 a04615374619e6d4ba178e1770b91b71
BLAKE2b-256 5f35ced11726b38cbbf1b5b23256f7a74769a9e50ecce84d4bfffe33463cbb25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page