Find, Connect and Manage APIs
Project description
Zyla-Api-Hub Python SDK - Find, Connect and Manage APIs All with a single account, single API key, and single SDK.
Key Features:
- Built for Developers: Tailored for developers, ensuring ease of use and seamless integration.
- Powerful JSON API: Robust JSON API designed for accurate and efficient data retrieval.
- User-Friendly Documentation: Navigate through our comprehensive documentation for a smooth integration process.
- Specialized Support: Count on our dedicated support team for assistance tailored to your specific needs.
Documentation
Start using Zyla-Api-Hub today. Visit Zylalabs.com and integrate in just minutes!
Installation
You can install Marketplace-Hub-API Python SDK with pip.
pip install zyla-hub-api
Usage
The Zyla-Api-Hub Python SDK is a wrapper around the requests library. It supports GET, POST, PUT, and DELETE requests.
Sign-up to Zyla-Api-Hub to get your API key and some credits to get started.
Making the GET request
Here is how to make different types of requests using the make_request method.
>>> from zyla_api_hub.client import ApiHubClient
>>> client = ApiHubClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')
>>> response = client.make_request(url: str, method: str, params: dict, data: dict)
GET Request without Parameters
>>> from zyla_api_hub.client import ApiHubClient
>>> client = ApiHubClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')
>>> url = "https://zylalabs.com/api/392/exercise+database+api/309/list+of+body+parts"
>>> response = client.make_request(url)
>>> print(response)
GET Request with Parameters
>>> from zyla_api_hub.client import ApiHubClient
>>> client = ApiHubClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')
>>> url = "https://zylalabs.com/api/4682/us+real+estate+rental+estimator+api/5779/get+estimation"
>>> params = {"address": "5500 Grand Lake Drive, San Antonio, TX, 78244","propertyType": "Condo","bedrooms": 2,"bathrooms": 2,"squareFootage": 1600}
>>> response = client.make_request(url, method='GET', params=params)
>>> print(response)
POST Request with Body
>>> from zyla_api_hub.client import ApiHubClient
>>> client = ApiHubClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')
>>> url = "https://zylalabs.com/api/4657/gmail+username+validation+api/5748/check+availability"
>>> data = {"username": "isacmartin"}
>>> response = response = client.make_request(url, method='POST', data=data)
>>> print(response)
Error Handling
In case of an error, the method will print the error message and the response content, if available.
AVAILABLE METHODS
-
make_request(url: str, method: str = 'GET', params: dict = None, data: dict = None)
-
url: The URL of the API endpoint.
-
method: The HTTP method (GET, POST, PUT, DELETE).
-
params: Dictionary of URL parameters..
-
data: Dictionary of the request body for POST/PUT requests.-
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
Hashes for zyla_hub_api-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340aa5b54234fb02bd575aa5820096353cad2237f49d4932aefa36ba8eb6fbba |
|
MD5 | 4edea3fb0eaa697183832b1270cd481b |
|
BLAKE2b-256 | fd49175f802d8941aad376bdfc4b39b3b4082c84bf882eacedac546265056e08 |