Python 2.7 and 3.4+
pip install moneyforward-acplus
Then import the package:
import moneyforward_acplus
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import moneyforward_acplus as acplus
from moneyforward_acplus.rest import ApiException
from pprint import pprint
configuration = acplus.Configuration()
# Configure API key authorization: ApiKeyAuth
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# Defining host is optional and default to https://api-enterprise-accounting.moneyforward.com/api/v1
configuration.host = "https://api-enterprise-accounting.moneyforward.com/api/v1"
# Enter a context with an instance of the API client
with acplus.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = acplus.AccountsApi(api_client)
accept_charset = 'utf-8' # str | The charset type of text/csv. (optional) (default to 'utf-8')
try:
# 勘定科目一覧取得
api_response = api_instance.get_accounts(accept_charset=accept_charset)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->get_accounts: %s\n" % e)
All URIs are relative to https://api-enterprise-accounting.moneyforward.com/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AccountsApi | get_accounts | GET /accounts | 勘定科目一覧取得 |
JournalsApi | create_journal_file | POST /journals/files | 仕訳帳作成要求 |
JournalsApi | delete_journal_file | DELETE /journals/files/{requestId} | 仕訳帳削除 |
JournalsApi | download_journal_file | GET /journals/files/{requestId} | 仕訳帳ダウンロード |
JournalsApi | get_journal_file_status | GET /journals/files/{requestId}/status | 仕訳帳作成状況取得 |
JournalsApi | get_journal_file_status_list | GET /journals/files/status | 仕訳帳作成状況一覧取得 |
SubAccountsApi | get_sub_accounts | GET /sub-accounts | 補助科目一覧取得 |
- Account
- CreateJournalFileRequest
- CreateJournalFileResponse
- Error
- ErrorDetail
- JournalFileStatus
- SubAccount
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header