Skip to main content

Find, Connect and Manage APIs

Project description

Zyla-Api-Hub

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


Download files

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

Source Distribution

zyla_hub_api-0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

zyla_hub_api-0.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

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