java.lang.Object
org.mastodon4j.core.MastodonClient
- All Implemented Interfaces:
BaseMastodonApi,MastodonApi
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mastodon4j.core.api.BaseMastodonApi
BaseMastodonApi.QueryOptions -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaccounts()apps()static MastodonApicreate(String restUrl, AccessToken accessToken) Creates an mastodon API instance for the given restUrl and access token.instance()lists()Search for content in accounts, statuses and hashtags.search(BaseMastodonApi.QueryOptions queryOptions) statuses()
-
Field Details
-
USER_AGENT_NAME
- See Also:
-
-
Method Details
-
create
Creates an mastodon API instance for the given restUrl and access token.- Parameters:
restUrl- the base URL of a mastodon serveraccessToken- the access token for the given instance- Returns:
- a new API ineraction instance
-
accounts
- Specified by:
accountsin interfaceMastodonApi
-
apps
- Specified by:
appsin interfaceMastodonApi
-
lists
- Specified by:
listsin interfaceMastodonApi
-
notifications
- Specified by:
notificationsin interfaceMastodonApi
-
statuses
- Specified by:
statusesin interfaceMastodonApi
-
streaming
- Specified by:
streamingin interfaceMastodonApi
-
timelines
- Specified by:
timelinesin interfaceMastodonApi
-
instance
Description copied from interface:BaseMastodonApiView server informationObtain general information about the server.
- Specified by:
instancein interfaceBaseMastodonApi- Returns:
- a instance information object
-
search
Description copied from interface:MastodonApiSearch for content in accounts, statuses and hashtags.- Specified by:
searchin interfaceMastodonApi- Parameters:
query- the search query to execute- Returns:
- a search result instance
-
search
Description copied from interface:BaseMastodonApi- Specified by:
searchin interfaceBaseMastodonApi- Parameters:
queryOptions- query options record containing all query parameters- Returns:
- a search result instance
-