Skip to main content

Overview

This integration guide shows you how to how to update your existing project to:
  1. install the ButterCMS package
  2. instantiate ButterCMS
  3. create components to fetch and display each of the three ButterCMS content types: Pages, Collections, and Blog Posts.
In order for the snippets to work, you’ll need to setup your dashboard content schemas inside of ButterCMS first.

Installation

Add your API token to local.properties:

Initialize the client

Create a reusable API client:
For complete API documentation including all available endpoints and parameters, see the REST API Reference.

Data models

Pages

Collections

Dynamic components

Component renderer

Component views

Using in activities

Blog

Caching

Use OkHttp’s caching for better performance:

Resources

Kotlin SDK

Kotlin SDK reference

Java SDK

Official Java SDK reference

GitHub Repository

View source code

Content API

REST API documentation