Skip to main content
All CollectionsPortal-X Pages
Design | Cloud Code | S2S Explorer
Design | Cloud Code | S2S Explorer

Used to test the S2S API and custom scripts from the perspective of an external server.

Jason Liang avatar
Written by Jason Liang
Updated over 9 months ago

The S2S Explorer simulates a client-operated server talking to the brainCloud servers. So you will be able to test the various S2S APIs and confirm their behaviors and JSON return formats.

Pre-requisite: Configuring S2S Servers

Incoming servers must be configured (i.e. declared) in the brainCloud dashboard before making S2S calls. This allows brainCloud to confirm that the requests are coming from a server that you own and aren’t malicious.

  • Launch the brainCloud Portal

  • Navigate to the Design | Servers | My Servers page. Click the [+Add New Server] button.

  • Give your server a name, like “S2SExplorer_Server”

  • Select Custome Server from the Server Type dropdown menu.

  • Leave the Base URL input box blank for the S2S APIs test.

  • Enter IP ranges restrict access to requests coming from the specified network addresses. This is highly recommended for production apps! For now, you can leave the ranges blank. This will make all IP ranges acceptable.

  • Hit [Save], and notice the system generates a secret for your server.

Run S2S APIs

  • Navigate to the Design | Cloud Code | S2S Explorer page.

  • Select a server from the Server dropdown menu.

  • Choose the Service and Operation you wish to run. Enter the parameters accordingly for the selected API call.

  • Hit [Run].

  • Note that if Is Session Based option is enabled, you will need to call Authenticate method first.

Did this answer your question?