forked from skycoin/pyskycoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request skycoin#118 from simelo/stdevMac_t86_generate_pyth…
…on_api [restapi] fixes skycoin#86 Add Python client for skycoin
- Loading branch information
Showing
97 changed files
with
24,381 additions
and
9,124 deletions.
There are no files selected for viewing
10 changes: 8 additions & 2 deletions
10
.github/issue_template.md → .github/ISSUE_TEMPLATE/bug_report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: 'feature' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Issue tracker is **ONLY** used for reporting bugs, features and enhancements. NO SUPPORT TICKETS ACCEPTED! Use [stackoverflow](https://stackoverflow.com) for supporting issues. | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# BuildInfo | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**branch** | **str** | git branch name | [optional] | ||
**commit** | **str** | git commit id | [optional] | ||
**version** | **str** | version number | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,256 @@ | ||
# swagger_client.DefaultApi | ||
|
||
All URIs are relative to *http://staging.node.skycoin.net* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**coin_supply**](DefaultApi.md#coin_supply) | **GET** /api/v1/coinSupply | | ||
[**csrf_token**](DefaultApi.md#csrf_token) | **GET** /api/v1/csrf | Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. | ||
[**resend_unconfirmed_txns**](DefaultApi.md#resend_unconfirmed_txns) | **POST** /api/v1/resendUnconfirmedTxns | | ||
[**version**](DefaultApi.md#version) | **GET** /api/v1/version | | ||
[**wallet_folder**](DefaultApi.md#wallet_folder) | **GET** /api/v1/wallets/folderName | | ||
|
||
|
||
# **coin_supply** | ||
> coin_supply() | ||
|
||
|
||
coinSupplyHandler returns coin distribution supply stats | ||
|
||
### Example | ||
```python | ||
from __future__ import print_function | ||
import time | ||
import swagger_client | ||
from swagger_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Configure API key authorization: csrfAuth | ||
configuration = swagger_client.Configuration() | ||
configuration.api_key['csrf_Token'] = 'YOUR_API_KEY' | ||
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
# configuration.api_key_prefix['csrf_Token'] = 'Bearer' | ||
|
||
# create an instance of the API class | ||
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) | ||
|
||
try: | ||
api_instance.coin_supply() | ||
except ApiException as e: | ||
print("Exception when calling DefaultApi->coin_supply: %s\n" % e) | ||
``` | ||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
void (empty response body) | ||
|
||
### Authorization | ||
|
||
[csrfAuth](../README.md#csrfAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
||
# **csrf_token** | ||
> InlineResponse200 csrf_token() | ||
Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. | ||
|
||
Response -> CSRF token to use in POST requests | ||
|
||
### Example | ||
```python | ||
from __future__ import print_function | ||
import time | ||
import swagger_client | ||
from swagger_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Configure API key authorization: csrfAuth | ||
configuration = swagger_client.Configuration() | ||
configuration.api_key['csrf_Token'] = 'YOUR_API_KEY' | ||
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
# configuration.api_key_prefix['csrf_Token'] = 'Bearer' | ||
|
||
# create an instance of the API class | ||
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) | ||
|
||
try: | ||
# Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. | ||
api_response = api_instance.csrf_token() | ||
pprint(api_response) | ||
except ApiException as e: | ||
print("Exception when calling DefaultApi->csrf_token: %s\n" % e) | ||
``` | ||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
[**InlineResponse200**](InlineResponse200.md) | ||
|
||
### Authorization | ||
|
||
[csrfAuth](../README.md#csrfAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
||
# **resend_unconfirmed_txns** | ||
> resend_unconfirmed_txns() | ||
|
||
|
||
Broadcasts all unconfirmed transactions from the unconfirmed transaction pool | ||
|
||
### Example | ||
```python | ||
from __future__ import print_function | ||
import time | ||
import swagger_client | ||
from swagger_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Configure API key authorization: csrfAuth | ||
configuration = swagger_client.Configuration() | ||
configuration.api_key['csrf_Token'] = 'YOUR_API_KEY' | ||
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
# configuration.api_key_prefix['csrf_Token'] = 'Bearer' | ||
|
||
# create an instance of the API class | ||
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) | ||
|
||
try: | ||
api_instance.resend_unconfirmed_txns() | ||
except ApiException as e: | ||
print("Exception when calling DefaultApi->resend_unconfirmed_txns: %s\n" % e) | ||
``` | ||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
void (empty response body) | ||
|
||
### Authorization | ||
|
||
[csrfAuth](../README.md#csrfAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
||
# **version** | ||
> BuildInfo version() | ||
|
||
|
||
versionHandler returns the application version info | ||
|
||
### Example | ||
```python | ||
from __future__ import print_function | ||
import time | ||
import swagger_client | ||
from swagger_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Configure API key authorization: csrfAuth | ||
configuration = swagger_client.Configuration() | ||
configuration.api_key['csrf_Token'] = 'YOUR_API_KEY' | ||
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
# configuration.api_key_prefix['csrf_Token'] = 'Bearer' | ||
|
||
# create an instance of the API class | ||
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) | ||
|
||
try: | ||
api_response = api_instance.version() | ||
pprint(api_response) | ||
except ApiException as e: | ||
print("Exception when calling DefaultApi->version: %s\n" % e) | ||
``` | ||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
[**BuildInfo**](BuildInfo.md) | ||
|
||
### Authorization | ||
|
||
[csrfAuth](../README.md#csrfAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
||
# **wallet_folder** | ||
> wallet_folder() | ||
|
||
|
||
Returns the wallet directory path | ||
|
||
### Example | ||
```python | ||
from __future__ import print_function | ||
import time | ||
import swagger_client | ||
from swagger_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Configure API key authorization: csrfAuth | ||
configuration = swagger_client.Configuration() | ||
configuration.api_key['csrf_Token'] = 'YOUR_API_KEY' | ||
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
# configuration.api_key_prefix['csrf_Token'] = 'Bearer' | ||
|
||
# create an instance of the API class | ||
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) | ||
|
||
try: | ||
api_instance.wallet_folder() | ||
except ApiException as e: | ||
print("Exception when calling DefaultApi->wallet_folder: %s\n" % e) | ||
``` | ||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
void (empty response body) | ||
|
||
### Authorization | ||
|
||
[csrfAuth](../README.md#csrfAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# InlineResponse200 | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**csrf_token** | **str** | Csrf Token is here | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# InlineResponse422 | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**code** | **int** | | [optional] | ||
**field** | **str** | | [optional] | ||
**message** | **str** | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
Oops, something went wrong.