Back to Restful Api Support

david.provaznik.j39933
david.provaznik.j39933

Hi, have you a python sample of create auth token with filled exceptedParams and allParams? I don`t know how fill defined parameters - which values.. Thank you.

Mavitm
Mavitm

Hi there are code examples for javascript and python in the document page https://octobercms.com/plugin/mavitm-restful

david.provaznik.j39933
david.provaznik.j39933

Hi, it is good, but i don't kow how to fill parameters in python sample. Have you python sample with filled parameters? Thank you.

Last updated

Mavitm
Mavitm

In the python example, the "allParams" object is the values ​​you set

allParams = {
        'moneyType': 82,
        'amount': 100,
        'playerId': 74094,
        'locale': 'ru',
        'recursive': {
            'x': 3,
            'b': 2,
            'a': 1,
            'z': 4
        },
        'recursiveArray': [3, 2, 1, 4]
    }

It is for you to fill in the features you specified in your request and create a token. set your own parameters like the code example above and use it with the example in the documentation

Mavitm
Mavitm

In the python example, the "allParams" object is the values ​​you set

allParams = {
        'moneyType': 82,
        'amount': 100,
        'playerId': 74094,
        'locale': 'ru',
        'recursive': {
            'x': 3,
            'b': 2,
            'a': 1,
            'z': 4
        },
        'recursiveArray': [3, 2, 1, 4]
    }

It is for you to fill in the features you specified in your request and create a token. set your own parameters like the code example above and use it with the example in the documentation

1-5 of 5