Skip to content

collecta/strophejscollecta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Collecta search plugin-in for Strophe

Requires strophejs, http://github.com/metajack/strophejs

This plug-in manages a set of streaming searches to the Collecta API.
Each search is a pubsub subscription to Collecta.  Atom payloads will
be delivered to the user-supplied callback function as new results
become available.

 Plug-in methods:
   subscribe(query, options)
     start watching a query

     query - string containing desired search query
     options - object with possible properties: api_key, query, rate_limit,
       context_count, and score_threshold. see Collecta api docs for 
       details on most of these. context_count is the number of historical
       items to fetch for context. api_key and query are required; others 
       are optional.

   unsubscribeAll()
     unsubscribe from all searches

About

A Collecta API plug-in for Strophejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published