Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

circlesio-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circlesio-sdk

Circles.io Node sdk

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Circles.io SDK

Allows you to use your api

===

start with setup with a require and your domain with the token


var  Circles = require('./lib')
	,circles= new Circles("your-url.circles.io","yourToken");

then you can do
  • read
  • create
  • update
  • delete

Just specify the collection your calling then the data your passing

Create

circles.create(collection,model,options,function(err,result){
			console.log(err,result)
})

Read

circles.read(collection,query,options,function(err,result){
			console.log(err,result)
})

Update

circles.update(collection,query,options,model,function(err,result){
			console.log(err,result)
})

Delete

circles.delete(collection,query,options,function(err,result){
			console.log(err,result)
})

The collection is the data collection name (string) :
  • item
  • instance
  • client
  • profile
  • grid
  • blob
  • loader
  • level
  • role
  • event
  • report
Model is the data that will become the data object (object):

Data that will be saved or updated The data being updated can be saved with deep model meaning if you have an object

{ name : {
	 first :"john"
	,last  :"smith"
	}
}

you can update just the first name with :

{ 'name.first':'jane'}

or with arrays you can :

{ toys : ['car','truck','drums'] }

you can update just truck with :

{ 'toys.1':'bus'}

where 1 is the index

Query is the search lookup using normal mongodb queries (object):

Mongo Basic Queries Mongo Adv Queries just {} will return all and with the addtion of just

{ _id : ''}
Options (object) [optional]:
  • skip (int)
  • limit (int)
  • sort (object)

Keywords

FAQs

Package last updated on 03 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc