mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 04:25:25 +00:00
v2.0.0
This commit is contained in:
3
examples/mojangapi/get_name_history.py
Normal file
3
examples/mojangapi/get_name_history.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import pyspapi
|
||||
|
||||
mojangapi = pyspapi.MojangAPI.get_name_history(uuid='63ed47877aa3470fbfc46c5356c3d797')
|
||||
3
examples/mojangapi/get_profile.py
Normal file
3
examples/mojangapi/get_profile.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import pyspapi
|
||||
|
||||
mojangapi = pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797')
|
||||
3
examples/mojangapi/get_username.py
Normal file
3
examples/mojangapi/get_username.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import pyspapi
|
||||
|
||||
mojangapi = pyspapi.MojangAPI.get_username(uuid='63ed47877aa3470fbfc46c5356c3d797')
|
||||
3
examples/mojangapi/get_uuid.py
Normal file
3
examples/mojangapi/get_uuid.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import pyspapi
|
||||
|
||||
mojangapi = pyspapi.MojangAPI.get_uuid(username='deesiigneer')
|
||||
5
examples/spapi/check_user_access.py
Normal file
5
examples/spapi/check_user_access.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import pyspapi
|
||||
|
||||
spapi = pyspapi.SPAPI(card_id='card_id', token='token').balance
|
||||
|
||||
print(spapi.check_users_access([262632724928397312, 264329096920563714]))
|
||||
7
examples/spapi/get_user and get_users.py
Normal file
7
examples/spapi/get_user and get_users.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import pyspapi
|
||||
|
||||
spapi = pyspapi.SPAPI(card_id='card_id', token='token')
|
||||
|
||||
print(spapi.get_user(262632724928397312))
|
||||
|
||||
print(spapi.get_users([262632724928397312, 264329096920563714]))
|
||||
10
examples/spapi/payments.py
Normal file
10
examples/spapi/payments.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import pyspapi
|
||||
|
||||
spapi = pyspapi.SPAPI(card_id='card_id', token='token')
|
||||
|
||||
print(spapi.payment(amount=1,
|
||||
redirect_url='https://www.google.com/',
|
||||
webhook_url='https://www.google.com/',
|
||||
data='some-data'
|
||||
)
|
||||
)
|
||||
9
examples/spapi/transaction.py
Normal file
9
examples/spapi/transaction.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import pyspapi
|
||||
|
||||
spapi = pyspapi.SPAPI(card_id='CARD_ID', token='TOKEN')
|
||||
|
||||
print(spapi.transaction(receiver=12345,
|
||||
amount=1,
|
||||
comment="test"
|
||||
)
|
||||
)
|
||||
5
examples/spapi/webhook_verify.py
Normal file
5
examples/spapi/webhook_verify.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import pyspapi
|
||||
|
||||
spapi = pyspapi.SPAPI(card_id='your_card_id', token='your_token')
|
||||
|
||||
print(spapi.webhook_verify(data='webhook_data', header='webhook_header'))
|
||||
Reference in New Issue
Block a user