contents of this page
JavaScript Binding (parsely-js)¶
Introspect API for documentation¶
The JavaScript API is self-documenting. The API includes a documentation component that can output to a standard console.log JavaScript console (available in Chrome and Firefox with Firebug) by simply calling PARSELY.Api.introspect(). It will show all valid API URLs and all valid arguments, as well as documentation for all of the methods. For convenience, a listing of all available API methods is reproduced here. You call these off the PARSELY.Api object.
- introspect: prints out API documentation to console.log
- listProfiles: lists all profiles in system
- getProfile: gets profile for a particular profileId
- listVisits: gets all visits for specified profileId
- listRelated: lists related content for given page url
- listTopics: lists topics related to given article url
- listRecommended: personalized recommendations for user with given profileId
- queryItems: arbitrary query for items (e.g. all articles with keyword “Obama”)
