From 959690cffe3693eeeb36fa34bc399db69f11c1d0 Mon Sep 17 00:00:00 2001 From: bloukingfisher Date: Fri, 16 Aug 2019 11:03:55 -0500 Subject: [PATCH] Correct Organization mode instructions and example --- src/content/reference/SDKs/android.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/content/reference/SDKs/android.md b/src/content/reference/SDKs/android.md index a1b2cca182..b0d3456c54 100644 --- a/src/content/reference/SDKs/android.md +++ b/src/content/reference/SDKs/android.md @@ -542,23 +542,21 @@ under `devicesetup -> src -> main -> res -> values`. --- ### Organization mode: -Setting the boolean resource `organization` to `true`[1] in one of your resource files) will enable organization mode, which uses different API endpoints and requires special permissions (See Particle Console). -If you enable organization mode, be sure to also provide string resources for `organization_slug` and `product_slug`, using the values you created on the [Particle Console](/guide/tools-and-features/console/). -To provide the `ParticleCloud` class with correct OAuth credentials for creating customers (so app users could create an account), [read the instructions here](/reference/android/#oauth-client-configuration). +Setting the boolean resource `organization` and `productMode` to `true` in one of your resource files) will enable organization mode, which uses different API endpoints and requires special permissions (See Particle Console). +If you enable organization/product mode, be sure to also provide string resources for `product_ID` and `product_slug`, using the values you created on the [Particle Console](/guide/tools-and-features/console/). +To provide the `ParticleCloud` class with correct OAuth credentials for creating customers (so app users could create an account), [read the instructions here](/reference/android/#oauth-client-configuration) add `oauth_client_id` and `oauth_client_secret`. To learn how to create these credentials for your organization [read here](/tutorials/device-cloud/authentication). -[1] i.e.: adding `false` - ```xml - -true - -Acme Wireless-Enabled Widget Company - -acme_wireless_enabled_widgets - -acme-widget-model-123 + + true + DEPRECATED + true + 1234 + acme-widget-model-123 + (client ID string goes here) + (client secret 40-char hex string goes here) ``` ---