-
rento_samAsked on June 2, 2017 at 3:04 AM
This my code for login in jotForm with library PHP.
What is my problem?
1 This code is login my user, get responce (var_dump($this->user)) i see info, but refresh and all info for my user is hide, next refresh, refresh no my info is hide?
2 I Call ($jotformAPI->getForms()), result is array with text euOnly.
public function __construct() {
$creadentials = array(
"username" => "ff645fdgzvdd.hristoddfv@gmail.com",
"password" => "1234567890523245678qa",
"appName" => "Application Name",
"access" => "Access Type",
);
$this->Login($creadentials);
parent::__construct();
}
function Login($creadentials) {
$jotformAPI = new JotForm();
$response = $jotformAPI->loginUser($creadentials);
$this->user = $response;
// $jotformAPI->logoutUser();
}
public function Test($ar) {
var_dump($this->user);
$jotformAPI = new JotForm($this->user['appKey']);
$forms = $jotformAPI->getForms();
foreach ($forms as $form) {
print $form["title"];
}
-
Ashwin JotForm SupportReplied on June 2, 2017 at 3:39 AM
Hello,
I am not sure if I have understood your question correctly. I would suggest you to please send an email at api@jotform.com and someone form our API team will get back to you soon.
Thank you!