Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sid response null #2

Closed
eemirtekin opened this issue Mar 29, 2018 · 1 comment
Closed

sid response null #2

eemirtekin opened this issue Mar 29, 2018 · 1 comment

Comments

@eemirtekin
Copy link

eemirtekin commented Mar 29, 2018

Hi Sobhan,

I install your library, but it I could not use correctly.
sid response null

my code below,

<?php
include 'vendor/autoload.php';
use bsobbe\ithenticate\Ithenticate;
$ithenticate = new \bsobbe\ithenticate\Ithenticate("xxx", "xxx");
//The value in result variable is the document_id of the inserted document.
print_r($ithenticate);
$content=file_get_contents('./cloud-computing.txt', FILE_USE_INCLUDE_PATH);

$result = $ithenticate->submitDocument(
                "Cloud Computing",
                "Sobhan",
                "Bagheri",
                "cloud-computing.txt", //File name from the object of the uploaded temp file.
                $content, //Document content fetched with php file_get_contents() function from the document file.
                239091 //Folder number to store document (You can get folder number from last part of ithenticate panel URL).
          );
?>

When I run php page, I'm getting response.
sid is null

[root@emy]# php index.php
XML-RPC: PhpXmlRpc\Helper\XMLParser::xmlrpc_ee: invalid value received in DATETIME: 2018-03-29T09:00:58Z
bsobbe\ithenticate\Ithenticate Object
(
    [url:bsobbe\ithenticate\Ithenticate:private] => https://api.ithenticate.com/rpc
    [username:bsobbe\ithenticate\Ithenticate:private] => xxx
    [password:bsobbe\ithenticate\Ithenticate:private] => xxx
    [sid:bsobbe\ithenticate\Ithenticate:private] =>
)
XML-RPC: PhpXmlRpc\Helper\XMLParser::xmlrpc_ee: invalid value received in DATETIME: 2018-03-29T09:00:58Z

directory list

[root@emy]# ll
total 20
-rw-r--r-- 1 root root 3635 Mar 29 11:45 cloud-computing.txt
-rw-r--r-- 1 root root   61 Mar 29 11:44 composer.json
-rw-r--r-- 1 root root 4218 Mar 29 11:44 composer.lock
-rw-r--r-- 1 root root  800 Mar 29 11:49 index.php
drwxr-xr-x 5 root root   73 Mar 29 11:44 vendor
[root@emy]# ll vendor/
total 4
-rw-r--r-- 1 root root 178 Mar 29 11:44 autoload.php
drwxr-xr-x 3 root root  25 Mar 29 11:44 bsobbe
drwxr-xr-x 2 root root 203 Mar 29 11:44 composer
drwxr-xr-x 3 root root  23 Mar 29 11:44 phpxmlrpc

composer.json

{
    "require": {
        "bsobbe/ithenticate": "*"
    }
}

@bsobbe
Copy link
Owner

bsobbe commented Mar 29, 2018

  1. Make sure API for your ithenticate account is activate (you may contact ithenticate about that)
  2. Make sure you use SSL to communicate with the API
  3. Double check the values you pass the API (username & password validity)

This is duplicate of #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants