login with a test account
BeantwortetHello,
I wish to know what that is possible to connect and to make a call with a test account?
It means replacing the login and the password of this script by the login and the password of a test account (not the account of developer)
var onReady = function onReady() {
var myRainbowLogin = "login"; // Replace by your login
var myRainbowPassword = "password"; // Replace by your password
// The SDK for Web is ready to be used, so you can sign in
rainbowSDK.connection.signin(myRainbowLogin, myRainbowPassword)
.then(function(account) {
// You have successfully signed to Rainbow
...
})
.catch(function(err) {
// An error occurs (e.g. bad credentials)
...
});
};
// Listen when the SDK is ready
$(document).on(rainbowSDK.RAINBOW_ONREADY, onReady);
}.
Thanks.
-
Hi NAJ,
I am sorry, I am sure I got you. I see 2 points:
Point 1:
This is a Javascript example of how to connect to Rainbow using a login/pass. It should be used in an existing HTML5 project (or from scratch)If you are not used to develop with Javascript, please download a "working example" from there:
https://hub.openrainbow.com/#/documentation/doc/sdk/web/guides/13-Development_Kit
and modify it as you want.
(in Sample part)Point 2:
You said "the login and the password of a test account (not the account of developer)"
If you have a test account on the Sandbox and a company (fake or not) you can create new users.Login to https://web-sandbox.openrainbow.com with your admin account
"Invite new users" by email to your company
And you'll be able then to "play" with them on the sandbox
Did I reply to your question(s) ?
Best regards,
Pascal -
Hi Pascal,
I’am working on a website (php and javascript) the purpose is that a user can make a call from the web page, at the moment it works because I'm connected with my developer account and I want to test with a normal Rainbow account is it possible? is what needs to be replaced the "rainbowSDK.connection.signin (myRainbowLogin, myRainbowPassword)" line with "rainbowSDK.connection.signinOnRainbowOfficial (myRainbowLogin, myRainbowPassword)"?
ps: it is possible to communicate in French?
Thanks
-
Hi NAJI,
I'll reply in french and english for other readers ;)
For the moment it is possible to test with production users (real users) by using signinOnRainbowOfficial instead of signin .
Pour le moment c'est possible/autorisé d'utiliser signinOnRainbowOfficial pour se connecter avec un user officiel sur "la prod".But for you to know, later this summer having a valid appId on production will be mandatory / and some APIs won't work on production without an appID.
Mais il faut savoir que plus tard cet été il faudra OBILIGATOIREMENT avoir un appID valide sur la production sinon l'application ne pourra pas se connecter, et qu'actuellement sans appID certains appels d'API seront déjà refusés sans appId.
About appID and process, please check https://hub.openrainbow.com/#/documentation/doc/hub/developer-journey
If not yet done, please create an account in the HUB (or use an existing rainbow user) to be able to create appID on production: https://hub.openrainbow.comBest regards,
Pascal
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare