Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Simply007 authored Mar 27, 2023
1 parent 6a94b96 commit 6c31a5c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions delivery-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ dependencies {

The `DeliveryClient` class is the main class of the SDK. Using this class, you can retrieve content from your Kontent.ai projects.


To create an instance of the class, you need to provide a [project ID](https://kontent.ai/learn/tutorials/develop-apps/get-content/getting-content#a-getting-content-items).

```java
Expand Down Expand Up @@ -87,7 +86,6 @@ Once you create a `DeliveryClient`, you can start querying your project reposito

To retrieve unpublished content, you need to create a `DeliveryClient` with both Project ID and Preview API key (You could also configure Preview API key in `DeliveryOptions` described above). Each Kontent.ai project has its own Preview API key.


```java
// Note: Within a single project, we recommend that you work with only
// either the production or preview Delivery API, not both.
Expand Down Expand Up @@ -150,7 +148,7 @@ CompletionsStage<ContentItemsListingResponse> response = client.getItems(
.includeTotalCount()
.build()
)
```
```

## Response structure

Expand Down Expand Up @@ -250,7 +248,7 @@ for (Option option : element.getOptions()) {
item.setValue(option.getCodename());
item.setSelected("semi_dry".equals(option.getCodename()));
}
```
```

### Linked items

Expand All @@ -270,8 +268,8 @@ String customElementValue = ((CustomElement) articleItem.getElements().get("colo

To use this SDK for [Android](https://developer.android.com/) development, you can use any approach compatible with [Java CompletionStage API](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html). Most common is to use [Kotlin coroutines](https://kotlinlang.org/docs/reference/coroutines-overview.html) for Android applications written in Kotlin and [Java RX](https://github.com/ReactiveX/RxJava) for Android applications written in Java. Both of these approaches are showcased in this repository:

* [Android Java sample application](../sample-app-android#readme)
* [Android Kotlin Java Sample application](../sample-app-android-kotlin#readme)
- [Android Java sample application](../sample-app-android#readme)
- [Android Kotlin Java Sample application](../sample-app-android-kotlin#readme)

⚠ There are two Android-specific rules you need to follow in order for the Delivery SDK to work correctly.

Expand Down

0 comments on commit 6c31a5c

Please sign in to comment.