Python Client for the OriginStamp service
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.swagger-codegen
docs
originstamp_client
.gitignore
.swagger-codegen-ignore
.travis.yml
LICENSE
README.md
git_push.sh
requirements.txt
setup.py
test-requirements.txt
tox.ini

README.md

OriginStamp Python Client

Build Status

A Python implementation of the OriginStamp API. For endpoint documentation see OriginStamp Documentation

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 3.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit https://originstamp.com

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

Install the python package using the following command:

pip install originstamp-client==1.0.1

See PyIP for latest available version.

Then import the package:

import originstamp_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import originstamp_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import originstamp_client
from originstamp_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = originstamp_client.TimestampApi()
authorization = 'authorization_example' # str | A valid API key is essential for authorization to handle the request.
timestamp_request = originstamp_client.TimestampRequest() # TimestampRequest | DTO for the hash submission. Add all relevant information concerning your hash submission.

try:
    # Submission
    api_response = api_instance.create_timestamp(authorization, timestamp_request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TimestampApi->create_timestamp: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.originstamp.com

Class Method HTTP request Description
SchedulerApi get_next_scheduling_time POST /v3/submission/times NextSchedule
TimestampApi create_timestamp POST /v3/timestamp/create Submission
TimestampApi get_api_key_usage GET /v3/api_key/usage Usage
TimestampApi get_hash_status GET /v3/timestamp/{hash_string} Status
TimestampApi get_proof POST /v3/timestamp/proof Proof
TimestampApi trigger_timestamp_webhook POST /v3/webhook/start Dev

Documentation For Models

Author

mail@originstamp.com