Coder Social home page Coder Social logo

blipjs's Introduction

An easy way to get stuff from the Blipfoto API within a browser.

Set up:

<script src='BlipJS.js'></script>
<script>
var blip = new BlipJS('yourapikey');
</script>

Get the latest uploads

blip.view('upload',function(entries){
	console.log(entries.length);			//=> 12 (the default)
console.log(entries[0].title);				//=> 'the entry title'
console.log(entries[0].permalink);			//=> 'http://www.blipfoto.com/entry/123456'
	});

Perform a search

blip.search('by joe',function(entries){
	console.log(entries.length);				//=> 12 (the default)
	});

Get info about a specific entry

blip.entry(123456,function(entry){
	console.log(entry.title);					//=> 12 'the entry title'
	});

##Do a custom request

blip.get('somecustomresource',{
	params:{param1 : 'value1', param2 : 'value2'},
	complete:function(data){
		// yay :)
		}
	error:function(code, message){
		// aw :(
		}
	});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.