No description, website, or topics provided.
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Commercetools Platform Example for Android

This Hello World project shows how to:

  • Connect to the commercetools platform API with OAuth2
  • Search and sort products
  • Create a cart
  • Put a product into a cart

Getting started

  • git clone this repo
git clone git@github.com:commercetools/commercetools-android-example.git
  • If you don't have a commercetools platform project yet, register at the Merchant Center and setup a project. If you add sample data, the app will work with that out of the box!
  • In the Merchant Center, go to the Developers section and select API Clients
  • Change the keys and enter your credentials commercetools-android-example/app/src/main/res/values/credentials.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="project">your-project-name</string>
    <string name="clientId">your-client-id</string>
    <string name="clientSecret">your-client-secret</string>
</resources>
  • Now you can open the project in Android Studio and play around with it ;)