public final class ModuleApiKeys extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleApiKeys.Async
Async module.
|
| Constructor and Description |
|---|
ModuleApiKeys(retrofit2.Retrofit retrofit,
Executor callbackExecutor) |
| Modifier and Type | Method and Description |
|---|---|
ModuleApiKeys.Async |
async() |
CMAApiKey |
create(String spaceId,
CMAApiKey key)
Create a new delivery api key.
|
protected com.contentful.java.cma.ServiceApiKeys |
createService(retrofit2.Retrofit retrofit) |
CMAArray<CMAApiKey> |
fetchAll(String spaceId)
Fetch all delivery api keys.
|
CMAArray<CMAApiKey> |
fetchAll(String spaceId,
Map<String,String> query)
Query for specific api keys.
|
CMAApiKey |
fetchOne(String spaceId,
String keyId)
Fetch only one delivery api key.
|
public ModuleApiKeys(retrofit2.Retrofit retrofit,
Executor callbackExecutor)
protected com.contentful.java.cma.ServiceApiKeys createService(retrofit2.Retrofit retrofit)
public CMAArray<CMAApiKey> fetchAll(String spaceId)
spaceId - the id of the space to host the api keys.IllegalArgumentException - if spaceId is null.public CMAArray<CMAApiKey> fetchAll(String spaceId, Map<String,String> query)
spaceId - the id of the space to host the api keys.query - the terms to query for specific keys.IllegalArgumentException - if spaceId is null.public CMAApiKey fetchOne(String spaceId, String keyId)
spaceId - the id of the space this is valid on.keyId - the id of the key itself.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if keyId is null.public CMAApiKey create(String spaceId, CMAApiKey key)
spaceId - the id of the space this is valid on.key - the key to be created.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if key is null.public ModuleApiKeys.Async async()
Copyright © 2017 Contentful, GmbH.. All Rights Reserved.