0

{"error":{"code":-1005,"detail":"Invalid Argument Error","description":"Invalid Argument Error"},"code":-1005}

hi there

everything works great with SDK but not sending message, im using this code

 
include_once 'jymengine.class.php';

$engine = new JYMEngine(CONSUMER_KEY, SECRET_KEY, USERNAME, PASSWORD);
$engine->debug = false;

if ($engine->debug) echo '> Fetching request token'. PHP_EOL;
if (!$engine->fetch_request_token()) die('Fetching request token failed');

if ($engine->debug) echo '> Fetching access token'. PHP_EOL;
if (!$engine->fetch_access_token()) die('Fetching access token failed');

if ($engine->debug) echo '> Signon as: '. USERNAME. PHP_EOL;
if (!$engine->signon('I am login from PHP code')) die('Signon failed');

if ($engine->debug) echo '> Signon as: '. USERNAME. PHP_EOL;
echo $engine->send_message("**MyID**", json_encode('salam'));

But I get this error:

{"error":{"code":-1005,"detail":"Invalid Argument Error","description":"Invalid Argument Error"},"code":-1005}



whats the problem?

by
4 Replies
  • i did it

    there is some coding problems with class.

    find and correct :D ;)
    0

  • 0
  • Could you please show us how did you fix it? Thank you so much.

    QUOTE(Uranium710 @ 13 May 2012 10:24 AM)
    i did it

    there is some coding problems with class.

    find and correct :D ;)
    0
  • Could you please show us how did you fix it? Thank you so much.
    0

Recent Posts

in Messenger IM SDK