@Remoteable(path="https://api.twitter.com/1.1/account_activity")
public interface AccountActivity
Modifier and Type | Method and Description |
---|---|
Boolean |
deleteWebhook(Long webhookId)
Removes the webhook from the provided application’s configuration.
|
Boolean |
deleteWebhookSubscriptions(Long webhookId)
Deactivates subscription for the provided user context and app.
|
List<Webhook> |
getWebhooks()
Returns all URLs and their statuses for the given app.
|
Boolean |
getWebhookSubscription(Long webhookId)
Provides a way to determine if a webhook configuration is subscribed to the provided user’s Direct Messages.
|
Boolean |
putWebhook(Long webhookId)
Triggers the challenge response check (CRC) for the given webhook’s URL.
|
Webhook |
registerWebhook(String url)
Registers a new webhook URL for the given application context.
|
Boolean |
registerWebhookSubscriptions(Long webhookId)
Subscribes the provided app to events for the provided user context.
|
@RemoteMethod(httpMethod="GET", path="/webhooks.json") List<Webhook> getWebhooks()
@RemoteMethod(httpMethod="POST", path="/webhooks.json") Webhook registerWebhook(@Query(value="url") String url)
@RemoteMethod(httpMethod="DELETE", path="/webhooks/{webhookId}.json") Boolean deleteWebhook(@Path(value="webhookId") Long webhookId)
@RemoteMethod(httpMethod="PUT", path="/webhooks/{webhookId}.json") Boolean putWebhook(@Path(value="webhookId") Long webhookId)
webhookId
- Webhook ID. Defined in resource path.@RemoteMethod(httpMethod="GET", path="/webhooks/{webhookId}/subscriptions.json") Boolean getWebhookSubscription(@Path(value="webhookId") Long webhookId) throws InvocationTargetException, org.apache.juneau.rest.client.RestCallException
webhookId
- Webhook ID. Defined in resource path.InvocationTargetException
org.apache.juneau.rest.client.RestCallException
@RemoteMethod(httpMethod="POST", path="/webhooks/{webhookId}/subscriptions.json") Boolean registerWebhookSubscriptions(@Path(value="webhookId") Long webhookId) throws InvocationTargetException, org.apache.juneau.rest.client.RestCallException
webhookId
- Webhook ID. Defined in resource path.InvocationTargetException
org.apache.juneau.rest.client.RestCallException
@RemoteMethod(httpMethod="DELETE", path="/webhooks/{webhookId}/subscriptions.json") Boolean deleteWebhookSubscriptions(@Path(value="webhookId") Long webhookId) throws InvocationTargetException, org.apache.juneau.rest.client.RestCallException
webhookId
- Webhook ID. Defined in resource path.InvocationTargetException
org.apache.juneau.rest.client.RestCallException
Copyright © 2018 The Apache Software Foundation. All rights reserved.