How to use the API to build my own application

131 views
Skip to first unread message

narendra choudhary

unread,
Jul 17, 2012, 12:56:42 AM7/17/12
to Singly API


I am new to this Singly API and i have downloaded the code of the
Locker projects and stared using building in my own local machine.

Like the same do you have the same instrucitons defined for the API's
or can you update us on more on the future amendments to the API's.

I want to learn indepth for the same using the node and try to
implement the same in the application.

Justin Parker

unread,
Jul 17, 2012, 2:07:48 AM7/17/12
to sing...@googlegroups.com
Hi!

Are you saying that you are interesting in running the API on your local machine? If so, it is possible via the code at http://github.com/singly/hallmonitor, but it requires certain infrastructure pieces like S3, a mysql database, etc.

Instead of that, I would suggest using the hosted Singly API to build the application you are looking for. You can find more details at https://singly.com/docs, and a Node example app is at https://github.com/Singly/nodejs_express_skeleton.

Can you clarify what you want to implement?

--Justin

Jer Miller

unread,
Jul 17, 2012, 12:49:49 PM7/17/12
to sing...@googlegroups.com
Minor correction, the api codebase is actually at https://github.com/singly/hallway :)

--
You received this message because you are subscribed to the Google Groups "Singly API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/singlyapi/-/8IJc4ch_5R4J.

To post to this group, send email to sing...@googlegroups.com.
To unsubscribe from this group, send email to singlyapi+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/singlyapi?hl=en.

narendra

unread,
Jul 18, 2012, 12:26:20 AM7/18/12
to sing...@googlegroups.com
Thanks for the information. Yes i have the infrastructure for the same which you have mentioned. I am also looking for building the API (means connectors for my own application like SAP etc) .

Thanks
Narendra

On Tue, Jul 17, 2012 at 11:37 AM, Justin Parker <jus...@singly.com> wrote:
Hi!

Are you saying that you are interesting in running the API on your local machine? If so, it is possible via the code at http://github.com/singly/hallmonitor, but it requires certain infrastructure pieces like S3, a mysql database, etc.

Instead of that, I would suggest using the hosted Singly API to build the application you are looking for. You can find more details g https://singly.com/docs, and a Node example app is at https://github.com/Singly/nodejs_express_skeleton.

Can you clarify what you want to implement?

--Justin


On Monday, July 16, 2012 9:56:42 PM UTC-7, narendra choudhary wrote:


I am new to this Singly API and i have downloaded the code of the
Locker projects and stared using building in my own local machine.

Like the same do you have the same instrucitons defined for the API's
or can you update us on more on the future amendments to the API's.

I want to learn indepth for the same using the node and try to
implement the same in the application.

--
You received this message because you are subscribed to the Google Groups "Singly API" group.

narendra

unread,
Jul 18, 2012, 1:15:39 AM7/18/12
to sing...@googlegroups.com
Hi
 When i have tried to run the hallway i got this error when installing mysql-libclient

> mysql-libm...@1.3.3 install /home/enachou/opensource/NewLock/hallway/node_modules/mysql-libmysqlclient
> node-gyp rebuild

info it worked if it ends with ok
spawn python [ '/home/enachou/.node-gyp/0.6.15/tools/gyp_addon',
  'binding.gyp',
  '-I/home/enachou/opensource/NewLock/hallway/node_modules/mysql-libmysqlclient/build/config.gypi',
  '-f',
  'make' ]
/bin/sh: mysql_config: not found
Traceback (most recent call last):
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp_addon", line 38, in <module>
    rc = gyp.main(gyp_args)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/__init__.py", line 471, in main
    options.circular_check)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/__init__.py", line 111, in Load
    depth, generator_input_info, check, circular_check)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 2289, in Load
    depth, check)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 387, in LoadTargetBuildFile
    build_file_path)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 1010, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 1025, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 984, in ProcessVariablesAndConditionsInDict
    ProcessConditionsInDict(the_dict, is_late, variables, build_file)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 861, in ProcessConditionsInDict
    variables, build_file)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 1010, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 1029, in ProcessVariablesAndConditionsInList
    expanded = ExpandVariables(item, is_late, variables, build_file)
  File "/home/enachou/.node-gyp/0.6.15/tools/gyp/pylib/gyp/input.py", line 696, in ExpandVariables
    (contents, p.returncode))
Exception: Call to 'mysql_config --libs_r' returned exit status 127. while trying to load binding.gyp
ERR! Error: `gyp_addon` failed with exit code: 1
    at Array.0 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:196:18)
    at EventEmitter._tickCallback (node.js:192:40)
ERR! not ok

npm ERR! mysql-libm...@1.3.3 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the mysql-libm...@1.3.3 install script.
npm ERR! This is most likely a problem with the mysql-libmysqlclient package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls mysql-libmysqlclient
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.38-11-generic-pae
npm ERR! command "node" "/usr/local/bin/npm" "install" "mysql-libmysqlclient"
npm ERR! cwd /home/enachou/opensource/NewLock/hallway
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! code ELIFECYCLE
npm ERR! message mysql-libm...@1.3.3 install: `node-gyp rebuild`
npm ERR! message `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/enachou/opensource/NewLock/hallway/npm-debug.log
npm not ok
enachou@DL84WQ1:~/opensource/NewLock/hallway$ sudo npm install mysql-libmysqlclient
npm http GET https://registry.npmjs.org/mysql-libmysqlclient/1.3.3
^Z
[3]+  Stopped                 sudo npm install mysql-libmysqlclient
enachou@DL84WQ1:~/opensource/NewLock/hallway$ npm owner ls mysql-libmysqlclient
npm http GET https://registry.npmjs.org/mysql-libmysqlclient
npm http 200 https://registry.npmjs.org/mysql-libmysqlclient
Sannis <efim...@gmail.com>
enachou@DL84WQ1:~/opensource/NewLock/hallway$ node-gyp rebuild
node-gyp: command not found

Could you please suggest me what i am doing wrong .

narendra choudhary

unread,
Jul 18, 2012, 4:19:34 AM7/18/12
to Singly API
Hi

Now i am successfully installed the hallway into my local but when i
am running app it is redirecting to the singly.com. Is this is the
behaviour being set for the application or i am missing something
here.

It will be very useful if some docs will be there for the installation
too.

Thanks
Narendra

On Jul 18, 10:15 am, narendra <choudharynaren...@gmail.com> wrote:
> Hi
>  When i have tried to run the hallway i got this error when installing
> mysql-libclient
>
> > mysql-libmysqlcli...@1.3.3 install
> npm ERR! mysql-libmysqlcli...@1.3.3 install: `node-gyp rebuild`
> npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
> npm ERR!
> npm ERR! Failed at the mysql-libmysqlcli...@1.3.3 install script.
> npm ERR! This is most likely a problem with the mysql-libmysqlclient
> package,
> npm ERR! not with npm itself.
> npm ERR! Tell the author that this fails on your system:
> npm ERR!     node-gyp rebuild
> npm ERR! You can get their info via:
> npm ERR!     npm owner ls mysql-libmysqlclient
> npm ERR! There is likely additional logging output above.
> npm ERR!
> npm ERR! System Linux 2.6.38-11-generic-pae
> npm ERR! command "node" "/usr/local/bin/npm" "install"
> "mysql-libmysqlclient"
> npm ERR! cwd /home/enachou/opensource/NewLock/hallway
> npm ERR! node -v v0.6.15
> npm ERR! npm -v 1.1.16
> npm ERR! code ELIFECYCLE
> npm ERR! message mysql-libmysqlcli...@1.3.3 install: `node-gyp rebuild`
> npm ERR! message `sh "-c" "node-gyp rebuild"` failed with 1
> npm ERR! errno {}
> npm ERR!
> npm ERR! Additional logging details can be found in:
> npm ERR!     /home/enachou/opensource/NewLock/hallway/npm-debug.log
> npm not ok
> enachou@DL84WQ1:~/opensource/NewLock/hallway$ sudo npm install
> mysql-libmysqlclient
> npm http GEThttps://registry.npmjs.org/mysql-libmysqlclient/1.3.3
> ^Z
> [3]+  Stopped                 sudo npm install mysql-libmysqlclient
> enachou@DL84WQ1:~/opensource/NewLock/hallway$ npm owner ls
> mysql-libmysqlclient
> npm http GEThttps://registry.npmjs.org/mysql-libmysqlclient
> npm http 200https://registry.npmjs.org/mysql-libmysqlclient
> Sannis <efimo...@gmail.com>
> enachou@DL84WQ1:~/opensource/NewLock/hallway$ node-gyp rebuild
> node-gyp: command not found
>
> Could you please suggest me what i am doing wrong .
>

Rohit Kumar

unread,
May 27, 2013, 2:23:43 PM5/27/13
to sing...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages