public class HookAPI extends BaseAPI
| Constructor and Description |
|---|
HookAPI(ResourceFactory resourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
create(Reference object,
HookCreate create)
Create a new hook on the given object.
|
void |
delete(int id)
Deletes the hook with the given id.
|
List<Hook> |
get(Reference object)
Returns the hooks on the object.
|
void |
requestVerification(int id)
Request the hook to be validated.
|
void |
validateVerification(int id,
String code)
Validates the hook using the code received from the verify call.
|
getResourceFactorypublic HookAPI(ResourceFactory resourceFactory)
public int create(Reference object, HookCreate create)
object - The reference to the object the hook should be created oncreate - The details for the new hookpublic void delete(int id)
id - The id of the hookpublic List<Hook> get(Reference object)
object - The reference to the object to get hooks forpublic void requestVerification(int id)
id - The id of the hook to be verifiedpublic void validateVerification(int id,
String code)
id - The id of the hook to be verifiedcode - The code received from the call to the endpointCopyright © 2014. All Rights Reserved.