-
Notifications
You must be signed in to change notification settings - Fork 7
/
example.py
50 lines (37 loc) · 853 Bytes
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import os
import beyonic
from dotenv import load_dotenv
load_dotenv()
myapi = os.environ['BEYONIC_ACCESS_KEY']
beyonic.api_key = myapi
'''
Common get methods
'''
#Listing account.
'''
accounts = beyonic.Account.list()
print(accounts)
'''
#Listing currencies.
'''
currencies = beyonic.Currency.list()
print(currencies)
Error:beyonic.errors.ResponseError: 500 error: b'{"detail":"An unexpected error has occurred. Please report to support@beyonic.com. Error Id: None"}'
'''
#Listing networks
'''
networks = beyonic.Network.list()
print(networks)
'''
#Listing transactions.
transactions = beyonic.Transaction.list()
print(transactions)
#Listing contact.
contacts = beyonic.Contact.list()
print(contacts)
#Listing events
'''
events = beyonic.Event.list()
print(events)
Error: AttributeError: module 'beyonic' has no attribute 'Event'
'''