RBuster's Forum Posts

  • It's very difficult to get some help on this forum. Even if I have to pay for this.

    It's always been like this, especially if a person doesn't want to help, but just wants to increase the number of useless posts to make it look like they're helping. After a user like that replies, no one who could really help interacts with the post anymore because they think I'm already getting help.That's why users sometimes post a question more than once, to see if they can really get help with their problems. For these people, who don't want to or don't know how to help, they always use the excuse that we want something ready-made, when we don't understand what they're saying. Worse still is when the user answers in their own language, thinking that everyone is polyglot or likes to use google translate to get help. If you don't want to help, don't interact, simple as that.

  • i can help u

    Will you be able to help me with this?

  • Thanks. How much you charge to explain how to setup the api code to the game?

    This is the message I received from the server admin:

    To start the game, my site will make this request to your system, which will return the url that I will place in an iframe within the site where you will already be logged in

    curl --location 'https://your_system.com/api/v1' \

    --header 'Content-Type: application/json' \

    --data ' {

    “method": ‘game_launch’,

    “agent_token": ‘e97aa980ab7d4eb9a90beff38e7ecf98’,

    “user_code": ‘178’,

    “provider_code": ‘BOOONGO’,

    “game_code": ‘sun_of_egypt’,

    }

    Return

    Success:{“status”: 1,“msg”: “SUCCESS”,“launch_url”: “http://yoursite.com/game_name/02d7a646a072d9f9fd26227fcd1c60ac9815d65b”}

  • Nobody?

  • I need help creating a communication between a game and an API. I was wondering if someone could explain it to me and how much I would have to pay. Thanks

    ===================================================================================

    Preciso de ajuda para criar uma comunicação entre um jogo e uma API. Gostaria de saber se alguém poderia me explicar isso e quanto cobraria. Obrigado

  • Could someone please help me with this? I don't need anyone to do anything for me, just explain how to do to identify a RETURN and how to check information (balance(using GET I presume)). Please,step by step. To update the data using POST, I think that the way it was explained, I could understand. Thanks.

  • In fact, things are different from what I had understood. The first POST is made by the game portal server and returns the URL where the game will be located, with the user already logged into the portal.

    RETURN
    {
     “status": 1,
     “msg": ‘SUCCESS’,
     “launch_url": ”http://...”
     }
    

    Then I need to check the credit balance and then update the balance at the end of the game

    //Get Account Balance
    curl --location 'https://...' \
    --header 'Content-Type: application/json' \
    --data '{
    “method": ‘user_balance’,
    “user_code": ”000”
    }'
    
    
    //Define whether you won or lost
    curl --location 'https://...' \
    --header 'Content-Type: application/json' \
    --data ' {
    “method": ‘transaction’,
    “user_code": ‘000’,
    “game_type": ******
    “slot": {
    “provider_code": ******
    “game_code": ******
    “type": ‘BASE’,
    “used_credit": 10,
    “win_credit": 0,
    “txn_id": *****
    }
    
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have a question about how to work with returns. How do I check if the message is equal to SUCCESS so that I can send the second POST?

    EDITED:

    In your example you used URL as URL instead of the http address. Is this a variable that is not declared with the others?

  • Thanks for the explanations and the suggestion. I'll use variables to make it more handy.

    The right thing to do would be to create an empty template, with just a few buttons and fields, so that I can check that everything is working. Then I'll post C3 here for you to take a look at and perhaps make some changes or improvements. Is that ok?

  • Just to see if I'm on the right track. I took this example from another post.

    I'd have to include the data and then send the post as shown, right?

    POST
    
     {
     “method": ‘game_launch’,
     “agent_code": ******
     “agent_token": ‘0123456789’,
     “user_code": ‘test’,
     “provider_code": ‘TEST’,
     “game_code": ‘XXXXXXXX’, // Optional - When it is empty, lobby url is returned.
     “lang": ”en”
     }
    
    //which will return a url already logged into the session
    
    RETURN
    {
     “status": 1,
     “msg": ‘SUCCESS’,
     “launch_url": ”http://”
     }
    
    

    EDITED:

    Then the server will return the information that I'm logged in, right? Do I use this information to open this URL or do I not need to do anything with it?

  • Thanks Igor, but it is greek for me :(

    I will try to understand. Thank you anyway

  • Hi Igor. Thanks for answering

    Here's a copy of the code I need to include in the game:

    POST
    
     {
     “method": ‘game_launch’,
     “agent_code": ******
     “agent_token": ‘0123456789’,
     “user_code": ‘test’,
     “provider_code": ‘TEST’,
     “game_code": ‘XXXXXXXX’, // Optional - When it is empty, lobby url is returned.
     “lang": ”en”
     }
    
    //which will return a url already logged into the session
    
    RETURN
    {
     “status": 1,
     “msg": ‘SUCCESS’,
     “launch_url": ”http://”
     }
    
    //where it will play your system will take data and insert it via webhook on my site
    
    Collect balance data
    POST
    {
     “method": ‘money_info’,
     “agent_code": ******
     “agent_token": ‘0123456789’,
     }
    RETURN
     {
     “status": 1,
     “msg": ‘SUCCESS’,
     “agent": {
     “agent_code": ******
     “balance": 1000000,
     }
     }
    
    //To change the balance is
    POST
     {
     “method": ‘win’,#Lose
     “agent_code": ******
     “agent_token": ‘0123456789’,
     “user_code": ‘test’,
     “amount": 10000
     }
    RETURN
    {
     “status": 1,
     “msg": ”SUCCESS”
     “agent_balance": 100000,
     “user_balance": 10000
     }
    
  • Any good soul willing to give a quick lesson on this process of linking an api in the construct game, please?

  • Hi everyone.

    I need to include an API code in the game I'm developing and I have no idea how to do it. Could someone be so kind as to give me some tips on this? I can share the code, which is quite small. Thanks in advance for any help.

  • Thanks