A simple gem to easily connect to the Inch Housing Intervention Interface
Project description
PinchLib
=================
This API SDK was automatically generated by APIMATIC v2.0
This SDK uses the Requests library and will work for Python 2.6 — 3.5.
How To Configure:
=================
The generated code might need to be configured with your API credentials. To do that,
open the file "Configuration.py" and edit its contents.
How To Build:
=============
The generated code uses Python libraries named Requests and Jsonpickle.
PIP is a popular tool for managing python packages[1].
To resolve these packages:
1) From terminal/cmd navigate to the root directory
2) Invoke 'pip install -r requirements.txt'
Note: You will need internet access to resolve these dependencies.
How To Use:
===========
The following shows how to make invoke the WebhookTypeController controller.
It is also shown in [2].
1. Create a "WebhookTypeControllerTest.py" file in the root directory.
2. Add the following import statement
'from PinchLib.Controllers.WebhookTypeController import *'
3. Create a new instance using 'controller = WebhookTypeController()'
4. Invoke an endpoint with the appropriate parameters, for example
'response = controller.list(<required parameters if any>)'
5. "response" will now be an object of type Webhook Type.
6. To test the response you get, print out a property of "response",
For Python2: 'print response.id'.
For Python3: 'print(response.id)'.
[1] PIP - https://pip.pypa.io
[2] from __future__ import print_function
from PinchLib.Controllers.WebhookTypeController import *
controller = WebhookTypeController()
response = controller.list()
print (response.id)
#or you can print more information
print (response.resolve_names())
=================
This API SDK was automatically generated by APIMATIC v2.0
This SDK uses the Requests library and will work for Python 2.6 — 3.5.
How To Configure:
=================
The generated code might need to be configured with your API credentials. To do that,
open the file "Configuration.py" and edit its contents.
How To Build:
=============
The generated code uses Python libraries named Requests and Jsonpickle.
PIP is a popular tool for managing python packages[1].
To resolve these packages:
1) From terminal/cmd navigate to the root directory
2) Invoke 'pip install -r requirements.txt'
Note: You will need internet access to resolve these dependencies.
How To Use:
===========
The following shows how to make invoke the WebhookTypeController controller.
It is also shown in [2].
1. Create a "WebhookTypeControllerTest.py" file in the root directory.
2. Add the following import statement
'from PinchLib.Controllers.WebhookTypeController import *'
3. Create a new instance using 'controller = WebhookTypeController()'
4. Invoke an endpoint with the appropriate parameters, for example
'response = controller.list(<required parameters if any>)'
5. "response" will now be an object of type Webhook Type.
6. To test the response you get, print out a property of "response",
For Python2: 'print response.id'.
For Python3: 'print(response.id)'.
[1] PIP - https://pip.pypa.io
[2] from __future__ import print_function
from PinchLib.Controllers.WebhookTypeController import *
controller = WebhookTypeController()
response = controller.list()
print (response.id)
#or you can print more information
print (response.resolve_names())
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
pinch-0.1.0.tar.gz
(5.0 kB
view details)
File details
Details for the file pinch-0.1.0.tar.gz
.
File metadata
- Download URL: pinch-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72033f3aa1c83439e4306216b5b6eec12b0fbdc288fdd889b6d94816fd82dd25 |
|
MD5 | 4c0b2a110e544e0e039b0bbd2c806956 |
|
BLAKE2b-256 | 73da6f5b755d6816f6afb819554b29bbe857c90ce678ad5a77a7f83685c9abf3 |