How about passing the slug as a parameter along with the webhook URL? This will allow your script to parse the parameter and perform actions accordingly.
JasonL
Posts
-
-
Are you referring to the date/time display format on the portal?
-
You can achieve it by writing a cloud code script that retrieves the data of each individual user's user entities and stores it in a custom entity collection. After that, call the method
RunBatchUserScript()
to execute this process for every user within the app. Then, the resulting collection can be downloaded for analytical purposes. -
Thank you for letting us know. We have resolved the issue for your appId 14822.
-
No, dynamic routing is not supported by BrainCloud webhook yet. You will have to use two different URLs.
-
Hey Lee, I was wondering if you could let us know where you got the last screenshot from?
-
For clarity, Firebase Cloud Messaging recommends creating a topic using Pub/Sub, though this approach is optional.
-
In the code, it's just a string variable, for the further concept of "topic", you can refer to this link -- https://firebase.google.com/docs/cloud-messaging/android/topic-messaging
-
brainCloud supports a wide range of popular in-app purchases, including Google Play, Apple, Facebook, Amazon, and Steam, etc.. In most cases, the purchase process is initiated through the corresponding IAP plugin that you need to download into your Unity project. Then, verify the receipt received from the purchase outcome with brainCloud by calling VerifyPurchase API. It should be noted that the necessary configuration for the IAP store must be set up in the brainCloud portal for your app, including the products section and platforms section. Some store integration examples are available on our documentation website -- https://docs.braincloudservers.com/learn/portal-tutorials/store-integration-google/
Hope this helps! -
You could also consider using the brainCloud relay server's SendToAll() function in this situation.
-
Hi Kuabs, you can use brainCloud webhooks to achieve this feature, the steps are as follows.
- Create a cloud code script, in this example use the name "webhook_forgotPassword", and paste the following code into the script.
"use strict"; function main() { var response = {}; bridge.logDebugJson("Script inputs", data); var userEmail = data.parameters.email; response.stringResponse = "webhook is processing user email reseting..." + data.parameters.email; // validating the user email if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(userEmail)) { // checking if the email is existed in brainCloud users var context = { "pagination": { "rowsPerPage": 20, "pageNumber": 1 }, "searchCriteria": { "emailAddress": userEmail }, "sortCriteria": { "playerName": 1 } }; var userProxy = bridge.getUserServiceProxy(); var postResult = userProxy.sysGetPage(context); if (postResult.data.results.count > 0) { var userProfileID = postResult.data.results.items[0].profileId; // sending password reset email postResult = userProxy.sysSendPasswordResetEmail(userProfileID); if (postResult.status == 200) { response.stringResponse = "password reset email has been sent to user's email:" + userEmail; } else { response.stringResponse = "system error with sending email..."; } } else { response.stringResponse = "user doesn't exist with the email you provided"; } } else { response.stringResponse = "user's email is invalid."; } return response; } main();
-
Open Design | Cloud Code | WebHooks page, and create a WebHook link to the script you created from the previous step. Copy down the WebHook URL for the next step.
-
Now, you have completed the work from brainCloud. Next, open your client app editor (if you are using Unity), define the WebHook URL as a variable, and link it to your forgotEmail object (could be a link or button in your app) onClick event, making it trigger this URL when the user clicks with Application.OpenURL command. Grab user inputted email and append it as an email parameter to the URL as follows:
const string passwordResetWebhookUrl = "https://portal.braincloudservers.com/webhook/12832/forgotPassword/6dc675bb-f8b4-495f-ac5e-1f0658bfe09c"; Application.OpenURL(passwordResetWebhookUrl + "?email=" + userEmail);
-
Run your app to test, you should get a similar pop-up window as follows once a user clicks the forgotEmail object,
-
Check the reset email in your test email account...
-
Exactly, the error status code returned from the individual method can be incorporated into the script response.
-
Note that the response status code for running a script indicates whether the script has been executed successfully or not. To return the status of the internal methods that were executed, it is usually to include them in the customized response.
The best place to debug your cloud code script is the portal script editor, which can show the stack trace of your code, also the logs you added. -
I believe that you can integrate the brainCloud C++ library as a third-party library within Gamemaker. brainCloud C++ library can be found here -- https://github.com/getbraincloud/braincloud-cpp
-
Thank you for bringing this to our attention. We will proceed to include this API in the list.
-
Hi Kirlos, as you can see from the response's
message
field, there are two elements (id
andname
) underneath, you need to append.id
to specify the first search field forid
, so change the"message.from"
to"messsge.from.id"
should solve this problem. -
You can hook the script to brainCloud authentication API and check the
loginCount
from the response, the related doc can be found here. -
Call AttachUniversalIdentity() method from client lib, the
username
is uniqueness enforced. -
Hey, there must be some syntax error in your script, would you be able to provide your script code here?
Webhook routes
Log timestamp to local time
Follow up question for bulk user entity data access
Localization Issue
Webhook routes
Localization Issue
[Unity] Registering push notifications specifically for Async turns.
[Unity] Registering push notifications specifically for Async turns.
[Unity] In App Purchases
Could RTT be used to broadcast player-authoritative movement periodically?
How to let a user request Email Password Reset when they aren't authenticated?
Is there a place I can see all possible error code that can come back from various APIs?
Is there a place I can see all possible error code that can come back from various APIs?
Can I use Braincloud with Gamemaker?
UserItems.AwardUserItem cannot be blocked for clients
getMessagesPage with $or field not working probably
Execute script when new user is registered
Convert Anonymous to username/password
bridge.include doesn't exists