|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OpenService
Service calls to the Flattr REST API which do not require authorization. However, some calls may return more details for authorized users.
All calls will decrement the remaining rate by one, unless noted otherwise.
Method Summary | |
---|---|
List<Activity> |
getActivities(UserId user,
Activity.Type type)
Returns all Activity of the given user ID. |
List<Category> |
getCategories()
Gets a list of all Flattr Category . |
List<Flattr> |
getFlattrs(ThingId thing)
Gets all Flattr most recently posted for the given thing ID. |
List<Flattr> |
getFlattrs(ThingId thing,
Integer count,
Integer page)
Gets all Flattr most recently posted for the given thing ID. |
List<Flattr> |
getFlattrs(UserId user)
Gets all Flattr most recently posted by the given user ID. |
List<Flattr> |
getFlattrs(UserId user,
Integer count,
Integer page)
Gets all Flattr most recently posted by the given user ID. |
List<Language> |
getLanguages()
Gets a list of all Flattr Language . |
RateLimit |
getLastRateLimit()
Gets the rate limit and remaining rate returned by the last API call. |
Thing |
getThing(ThingId thingId)
Gets a Thing for the given ThingId . |
Thing |
getThingBySubmission(AutoSubmission submission)
Gets a Thing by its autosubmit URL. |
Thing |
getThingByUrl(String url)
Gets a Thing by its registered URL. |
List<Thing> |
getThings(Collection<ThingId> thingIds)
Gets a list of Thing by a collection of thing IDs. |
List<Thing> |
getThings(UserId user)
Gets a list of Thing most recently submitted by the given user. |
List<Thing> |
getThings(UserId user,
Integer count,
Integer page)
Gets a list of Thing most recently submitted by the given user. |
User |
getUser(UserId user)
Gets the User profile of the given user ID. |
SearchResult |
searchThings(SearchQuery query,
Integer count,
Integer page)
Searches for Thing . |
Method Detail |
---|
Thing getThing(ThingId thingId) throws FlattrException
Thing
for the given ThingId
.
thingId
- ThingId
of the Thing to be fetched
Thing
FlattrException
Thing getThingByUrl(String url) throws FlattrException
Thing
by its registered URL.
Uses two rates!
url
- Thing's URL
Thing
of the URL that was found, null
if nothing was found
FlattrException
Thing getThingBySubmission(AutoSubmission submission) throws FlattrException
Thing
by its autosubmit URL.
Uses two rates!
submission
- AutoSubmission
to check for
Thing
of the submission if found, null
if nothing was found
FlattrException
List<Thing> getThings(UserId user) throws FlattrException
Thing
most recently submitted by the given user. This list
is limited to 30 entries.
user
- UserId
to find the Things of
Thing
submitted by the user
FlattrException
List<Thing> getThings(UserId user, Integer count, Integer page) throws FlattrException
Thing
most recently submitted by the given user.
user
- UserId
to find the Things ofcount
- Number of entries per page, null
defaults to 30 entriespage
- Page number (counted from 1), or null
to turn off paging
Thing
submitted by the user
FlattrException
List<Thing> getThings(Collection<ThingId> thingIds) throws FlattrException
Thing
by a collection of thing IDs.
thingIds
- Collection of ThingId
. The order of Thing
returned may
not match the order of the provided IDs.
Thing
fetched
FlattrException
SearchResult searchThings(SearchQuery query, Integer count, Integer page) throws FlattrException
Thing
.
query
- SearchQuery
, or null
to search for everythingcount
- Number of entries per page, null
defaults to 30 entriespage
- Page number (counted from 1), or null
to turn off paging
SearchResult
FlattrException
User getUser(UserId user) throws FlattrException
User
profile of the given user ID.
user
- UserId
to get a profile for
User
profile of that user
FlattrException
List<Flattr> getFlattrs(UserId user) throws FlattrException
Flattr
most recently posted by the given user ID. Limited to 30
results.
user
- UserId
to get the result for
Flattr
posted by the user
FlattrException
List<Flattr> getFlattrs(UserId user, Integer count, Integer page) throws FlattrException
Flattr
most recently posted by the given user ID.
user
- UserId
to get the result forcount
- Number of entries per page, null
defaults to 30 entriespage
- Page number (counted from 1), or null
to turn off paging
Flattr
posted by the user
FlattrException
List<Flattr> getFlattrs(ThingId thing) throws FlattrException
Flattr
most recently posted for the given thing ID.
thing
- ThingId
to get the result for
Flattr
posted by the user
FlattrException
List<Flattr> getFlattrs(ThingId thing, Integer count, Integer page) throws FlattrException
Flattr
most recently posted for the given thing ID.
thing
- ThingId
to get the result forcount
- Number of entries per page, null
defaults to 30 entriespage
- Page number (counted from 1), or null
to turn off paging
Flattr
posted by the user
FlattrException
List<Activity> getActivities(UserId user, Activity.Type type) throws FlattrException
Activity
of the given user ID.
user
- UserId
to get the result fortype
- activity type. null
defaults to Activity.Type#OUTGOING
.
Activity
FlattrException
List<Category> getCategories() throws FlattrException
Category
.
Note: The result is not cached.
Category
.
FlattrException
List<Language> getLanguages() throws FlattrException
Language
.
Note: The result is not cached.
Language
.
FlattrException
RateLimit getLastRateLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |