public final class ModuleApiKeys.Async extends Object
| Constructor and Description |
|---|
Async() |
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMAApiKey> |
create(String spaceId,
CMAApiKey key,
CMACallback<CMAApiKey> callback)
Create a new delivery api key.
|
CMACallback<CMAArray<CMAApiKey>> |
fetchAll(String spaceId,
CMACallback<CMAArray<CMAApiKey>> callback)
Fetch all delivery api keys.
|
CMACallback<CMAArray<CMAApiKey>> |
fetchAll(String spaceId,
Map<String,String> query,
CMACallback<CMAArray<CMAApiKey>> callback)
Query for specific api keys.
|
CMACallback<CMAApiKey> |
fetchOne(String spaceId,
String keyId,
CMACallback<CMAApiKey> callback)
Fetch only one delivery api key.
|
public CMACallback<CMAArray<CMAApiKey>> fetchAll(String spaceId, CMACallback<CMAArray<CMAApiKey>> callback)
spaceId - the id of the space this is valid on.callback - the callback to be informed about success or failure.IllegalArgumentException - if spaceId is null.public CMACallback<CMAArray<CMAApiKey>> fetchAll(String spaceId, Map<String,String> query, CMACallback<CMAArray<CMAApiKey>> callback)
spaceId - the id of the space to host the api keys.query - the terms to query for specific keys.callback - the callback to be informed about success or failure.IllegalArgumentException - if spaceId is null.public CMACallback<CMAApiKey> fetchOne(String spaceId, String keyId, CMACallback<CMAApiKey> callback)
spaceId - the id of the space this is valid on.keyId - the id of the key itself.callback - the callback to be called once the key is available.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if keyId is null.public CMACallback<CMAApiKey> create(String spaceId, CMAApiKey key, CMACallback<CMAApiKey> callback)
spaceId - the id of the space this is valid on.key - the key to be created.callback - the callback to be called once the key is available.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if key is null.Copyright © 2017 Contentful, GmbH.. All Rights Reserved.