How to make Singly API

18 views
Skip to first unread message

Rohit Kumar

unread,
May 27, 2013, 3:36:58 PM5/27/13
to sing...@googlegroups.com
Hi
I am new to use singly API i have download SDK for this Url
 https://github.com/Singly/singly-php but i'm not able solve this error

Notice: Undefined index: singlyClient
Fatal error: Class 'Singly\Client\SinglyClient' not found

Plz help for sove this error

Thanx
Rohit Kumar

Justin Parker

unread,
May 28, 2013, 11:15:32 AM5/28/13
to sing...@googlegroups.com
Hi Rohit,

Did you follow the instructions on this page? https://singly.com/docs/getting_started_php

Were you able to complete all the steps successfully?


Rohit Kumar

--
You received this message because you are subscribed to the Google Groups "Singly API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singlyapi+...@googlegroups.com.
To post to this group, send email to sing...@googlegroups.com.
Visit this group at http://groups.google.com/group/singlyapi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rohit Kumar

unread,
May 31, 2013, 4:11:49 AM5/31/13
to sing...@googlegroups.com
Yes ,i have follow all step.but error not solve

Rohit Kumar

unread,
May 31, 2013, 11:13:56 AM5/31/13
to sing...@googlegroups.com
This is my code in index.php
require_once("vendor/autoload.php");
require_once("../sdk/src/Singly/Client/SinglyClient.php");
require_once("../sdk/src/Singly/Client/InMemorySinglyAccountStorage.php");

use Singly\Client\SinglyClient ;
use Singly\Client\InMemorySinglyAccountStorage;


session_start();

$singlyClient = $_SESSION["singlyClient"];
if (empty($singlyClient)) {
  $singlyClient = new SinglyClient(
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      new InMemorySinglyAccountStorage());
  $_SESSION["singlyClient"] = $singlyClient;

}


On Tuesday, May 28, 2013 1:06:58 AM UTC+5:30, Rohit Kumar wrote:
Reply all
Reply to author
Forward
0 new messages