Skip to content

Commit

Permalink
commit the generated code, after all
Browse files Browse the repository at this point in the history
  • Loading branch information
rienafairefr committed Feb 22, 2018
1 parent da7cf7a commit 71e83f7
Show file tree
Hide file tree
Showing 216 changed files with 17,554 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ ynab.yaml
nosetests*.xml
tests/*.json
testscripts/*.json

ynab-api/
64 changes: 64 additions & 0 deletions ynab-api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
venv/
.python-version

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints
23 changes: 23 additions & 0 deletions ynab-api/.swagger-codegen-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
1 change: 1 addition & 0 deletions ynab-api/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.0
14 changes: 14 additions & 0 deletions ynab-api/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
#- "3.5-dev" # 3.5 development branch
#- "nightly" # points to the latest development branch e.g. 3.6-dev
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
script: nosetests
177 changes: 177 additions & 0 deletions ynab-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# ynab_api
Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com

This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0.0
- Package version: dev
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.

Python 2.7 and 3.4+

## Installation & Usage
### pip install

If the python package is hosted on Github, you can install directly from Github

```sh
pip install git+https://github.com/rienafairefr/pynYNAB.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/rienafairefr/pynYNAB.git`)

Then import the package:
```python
import ynab_api
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)

Then import the package:
```python
import ynab_api
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python
from __future__ import print_function
import time
import ynab_api
from ynab_api.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearer
ynab_api.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# ynab_api.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = ynab_api.AccountsApi()
budget_id = 'budget_id_example' # str | The ID of the Budget.
account_id = 'account_id_example' # str | The ID of the Account.

try:
# Single account
api_response = api_instance.get_account_by_id(budget_id, account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->get_account_by_id: %s\n" % e)

```

## Documentation for API Endpoints

All URIs are relative to *https://api.youneedabudget.com/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccountsApi* | [**get_account_by_id**](docs/AccountsApi.md#get_account_by_id) | **GET** /budgets/{budget_id}/accounts/{account_id} | Single account
*AccountsApi* | [**get_accounts**](docs/AccountsApi.md#get_accounts) | **GET** /budgets/{budget_id}/accounts | Account list
*BudgetsApi* | [**get_budget_by_id**](docs/BudgetsApi.md#get_budget_by_id) | **GET** /budgets/{budget_id} | Single budget
*BudgetsApi* | [**get_budgets**](docs/BudgetsApi.md#get_budgets) | **GET** /budgets | List budgets
*CategoriesApi* | [**get_categories**](docs/CategoriesApi.md#get_categories) | **GET** /budgets/{budget_id}/categories | List categories
*CategoriesApi* | [**get_category_by_id**](docs/CategoriesApi.md#get_category_by_id) | **GET** /budgets/{budget_id}/categories/{category_id} | Single category
*MonthsApi* | [**get_budget_month**](docs/MonthsApi.md#get_budget_month) | **GET** /budgets/{budget_id}/months/{month} | Single budget month
*MonthsApi* | [**get_budget_months**](docs/MonthsApi.md#get_budget_months) | **GET** /budgets/{budget_id}/months | List budget months
*PayeeLocationsApi* | [**get_payee_location_by_id**](docs/PayeeLocationsApi.md#get_payee_location_by_id) | **GET** /budgets/{budget_id}/payee_locations/{payee_location_id} | Single payee location
*PayeeLocationsApi* | [**get_payee_locations**](docs/PayeeLocationsApi.md#get_payee_locations) | **GET** /budgets/{budget_id}/payee_locations | List payee locations
*PayeeLocationsApi* | [**get_payee_locations_by_payee**](docs/PayeeLocationsApi.md#get_payee_locations_by_payee) | **GET** /budgets/{budget_id}/payees/{payee_id}/payee_locations | List locations for a payee
*PayeesApi* | [**get_payee_by_id**](docs/PayeesApi.md#get_payee_by_id) | **GET** /budgets/{budget_id}/payees/{payee_id} | Single payee
*PayeesApi* | [**get_payees**](docs/PayeesApi.md#get_payees) | **GET** /budgets/{budget_id}/payees | List payees
*ScheduledTransactionsApi* | [**get_scheduled_transaction_by_id**](docs/ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Single scheduled transaction
*ScheduledTransactionsApi* | [**get_scheduled_transactions**](docs/ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{budget_id}/scheduled_transactions | List scheduled transactions
*TransactionsApi* | [**bulk_create_transactions**](docs/TransactionsApi.md#bulk_create_transactions) | **POST** /budgets/{budget_id}/transactions/bulk | Bulk create transactions
*TransactionsApi* | [**create_transaction**](docs/TransactionsApi.md#create_transaction) | **POST** /budgets/{budget_id}/transactions | Create new transaction
*TransactionsApi* | [**get_transactions**](docs/TransactionsApi.md#get_transactions) | **GET** /budgets/{budget_id}/transactions | List transactions
*TransactionsApi* | [**get_transactions_by_account**](docs/TransactionsApi.md#get_transactions_by_account) | **GET** /budgets/{budget_id}/accounts/{account_id}/transactions | List account transactions
*TransactionsApi* | [**get_transactions_by_category**](docs/TransactionsApi.md#get_transactions_by_category) | **GET** /budgets/{budget_id}/categories/{category_id}/transactions | List category transactions
*TransactionsApi* | [**get_transactions_by_id**](docs/TransactionsApi.md#get_transactions_by_id) | **GET** /budgets/{budget_id}/transactions/{transaction_id} | Single transaction
*TransactionsApi* | [**update_transaction**](docs/TransactionsApi.md#update_transaction) | **PUT** /budgets/{budget_id}/transactions/{transaction_id} | Updates an existing transaction


## Documentation For Models

- [Account](docs/Account.md)
- [AccountResponse](docs/AccountResponse.md)
- [AccountWrapper](docs/AccountWrapper.md)
- [AccountsResponse](docs/AccountsResponse.md)
- [AccountsWrapper](docs/AccountsWrapper.md)
- [BudgetDetailResponse](docs/BudgetDetailResponse.md)
- [BudgetDetailWrapper](docs/BudgetDetailWrapper.md)
- [BudgetSummary](docs/BudgetSummary.md)
- [BudgetSummaryResponse](docs/BudgetSummaryResponse.md)
- [BudgetSummaryWrapper](docs/BudgetSummaryWrapper.md)
- [BulkIdWrapper](docs/BulkIdWrapper.md)
- [BulkIds](docs/BulkIds.md)
- [BulkResponse](docs/BulkResponse.md)
- [BulkTransactions](docs/BulkTransactions.md)
- [CategoriesResponse](docs/CategoriesResponse.md)
- [Category](docs/Category.md)
- [CategoryGroup](docs/CategoryGroup.md)
- [CategoryGroupsWrapper](docs/CategoryGroupsWrapper.md)
- [CategoryResponse](docs/CategoryResponse.md)
- [CategoryWrapper](docs/CategoryWrapper.md)
- [CurrencyFormat](docs/CurrencyFormat.md)
- [DateFormat](docs/DateFormat.md)
- [ErrorDetail](docs/ErrorDetail.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [MonthDetailResponse](docs/MonthDetailResponse.md)
- [MonthDetailWrapper](docs/MonthDetailWrapper.md)
- [MonthSummariesResponse](docs/MonthSummariesResponse.md)
- [MonthSummariesWrapper](docs/MonthSummariesWrapper.md)
- [MonthSummary](docs/MonthSummary.md)
- [Payee](docs/Payee.md)
- [PayeeLocation](docs/PayeeLocation.md)
- [PayeeLocationResponse](docs/PayeeLocationResponse.md)
- [PayeeLocationWrapper](docs/PayeeLocationWrapper.md)
- [PayeeLocationsResponse](docs/PayeeLocationsResponse.md)
- [PayeeLocationsWrapper](docs/PayeeLocationsWrapper.md)
- [PayeeResponse](docs/PayeeResponse.md)
- [PayeeWrapper](docs/PayeeWrapper.md)
- [PayeesResponse](docs/PayeesResponse.md)
- [PayeesWrapper](docs/PayeesWrapper.md)
- [SaveTransaction](docs/SaveTransaction.md)
- [SaveTransactionWrapper](docs/SaveTransactionWrapper.md)
- [ScheduledSubTransaction](docs/ScheduledSubTransaction.md)
- [ScheduledTransactionResponse](docs/ScheduledTransactionResponse.md)
- [ScheduledTransactionSummary](docs/ScheduledTransactionSummary.md)
- [ScheduledTransactionWrapper](docs/ScheduledTransactionWrapper.md)
- [ScheduledTransactionsResponse](docs/ScheduledTransactionsResponse.md)
- [ScheduledTransactionsWrapper](docs/ScheduledTransactionsWrapper.md)
- [SubTransaction](docs/SubTransaction.md)
- [TransactionResponse](docs/TransactionResponse.md)
- [TransactionSummary](docs/TransactionSummary.md)
- [TransactionWrapper](docs/TransactionWrapper.md)
- [TransactionsResponse](docs/TransactionsResponse.md)
- [TransactionsWrapper](docs/TransactionsWrapper.md)
- [BudgetDetail](docs/BudgetDetail.md)
- [CategoryGroupWithCategories](docs/CategoryGroupWithCategories.md)
- [MonthDetail](docs/MonthDetail.md)
- [ScheduledTransactionDetail](docs/ScheduledTransactionDetail.md)
- [TransactionDetail](docs/TransactionDetail.md)


## Documentation For Authorization


## bearer

- **Type**: API key
- **API key parameter name**: Authorization
- **Location**: HTTP header


## Author



17 changes: 17 additions & 0 deletions ynab-api/docs/Account.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Account

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**name** | **str** | |
**type** | **str** | |
**on_budget** | **bool** | Whether this account is on budget or not |
**closed** | **bool** | Whether this account is closed or not |
**balance** | **float** | The current balance of the account in milliunits format |
**cleared_balance** | **float** | The current cleared balance of the account in milliunits format |
**uncleared_balance** | **float** | The current uncleared balance of the account in milliunits format |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions ynab-api/docs/AccountResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AccountResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**AccountWrapper**](AccountWrapper.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions ynab-api/docs/AccountWrapper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AccountWrapper

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**account** | [**Account**](Account.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading

0 comments on commit 71e83f7

Please sign in to comment.