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