|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlattrService
Service calls to the Flattr REST API which require authorization.
All calls will decrement the remaining rate by one, unless noted otherwise.
Method Summary | |
---|---|
void |
click(AutoSubmission submission)
Flattrs an AutoSubmission . |
void |
click(String url)
Flattrs a URL. |
void |
click(ThingId thingId)
Flattrs a Thing. |
ThingId |
create(Submission thing)
Creates a new Thing. |
void |
delete(ThingId thingId)
Deletes a Thing. |
List<Activity> |
getMyActivities(Activity.Type type)
Returns all Activity of the associated user. |
List<Flattr> |
getMyFlattrs()
Returns all Flattr submitted by the associated user. |
List<Flattr> |
getMyFlattrs(Integer count,
Integer page)
Returns all Flattr submitted by the associated user. |
User |
getMyself()
Gets the User profile of the associated user. |
List<Thing> |
getMyThings()
Returns all Thing submitted by the associated user. |
List<Thing> |
getMyThings(Integer count,
Integer page)
Returns all Thing submitted by the associated user. |
void |
update(Thing thing)
Updates a Thing. |
Methods inherited from interface org.shredzone.flattr4j.OpenService |
---|
getActivities, getCategories, getFlattrs, getFlattrs, getFlattrs, getFlattrs, getLanguages, getLastRateLimit, getThing, getThingBySubmission, getThingByUrl, getThings, getThings, getThings, getUser, searchThings |
Method Detail |
---|
@RequiredScope(value=THING) ThingId create(Submission thing) throws FlattrException
thing
- Submission
to be submitted
ThingId
of the Thing
that was created
FlattrException
@RequiredScope(value=THING) void update(Thing thing) throws FlattrException
thing
- Thing
to be modified
FlattrException
@RequiredScope(value=THING) void delete(ThingId thingId) throws FlattrException
thingId
- ThingId
to delete
FlattrException
@RequiredScope(value=FLATTR) void click(ThingId thingId) throws FlattrException
thingId
- ThingId
to flattr
FlattrException
@RequiredScope(value=FLATTR) void click(AutoSubmission submission) throws FlattrException
AutoSubmission
. If the submission has not been submitted to
Flattr yet, it will automatically be submitted before.
submission
- AutoSubmission
to flattr
FlattrException
@RequiredScope(value=FLATTR) void click(String url) throws FlattrException
url
- URL to flattr
FlattrException
@RequiredScope User getMyself() throws FlattrException
User
profile of the associated user.
User
profile of oneself
FlattrException
@RequiredScope List<Thing> getMyThings() throws FlattrException
Thing
submitted by the associated user. Limited to 30 entries.
Thing
FlattrException
@RequiredScope List<Thing> getMyThings(Integer count, Integer page) throws FlattrException
Thing
submitted by the associated user.
count
- Number of entries per page, null
defaults to 30 entriespage
- Page number (counted from 1), or null
to turn off paging
Thing
FlattrException
@RequiredScope List<Flattr> getMyFlattrs() throws FlattrException
Flattr
submitted by the associated user. Limited to 30 entries.
Flattr
FlattrException
@RequiredScope List<Flattr> getMyFlattrs(Integer count, Integer page) throws FlattrException
Flattr
submitted by the associated user.
count
- Number of entries per page, null
defaults to 30 entriespage
- Page number (counted from 1), or null
to turn off paging
Flattr
FlattrException
@RequiredScope List<Activity> getMyActivities(Activity.Type type) throws FlattrException
Activity
of the associated user.
type
- activity type. null
defaults to Activity.Type#OUTGOING
.
Activity
FlattrException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |