-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No longer need to use client secret to intialize sdk. Test: Run demo app just by updating client id and account token (no more client secret is needed) and see if everyithings run smoothly.
- Loading branch information
1 parent
00beb5f
commit 8e57711
Showing
9 changed files
with
118 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,14 +28,14 @@ If you use Maven, you can include this library as a dependency: | |
<dependency> | ||
<groupId>com.wootric</groupId> | ||
<artifactId>wootric-sdk-android</artifactId> | ||
<version>2.6.1</version> | ||
<version>2.7.0</version> | ||
</dependency> | ||
``` | ||
|
||
### Using Gradle | ||
|
||
```xml | ||
compile 'com.wootric:wootric-sdk-android:2.6.1' | ||
compile 'com.wootric:wootric-sdk-android:2.7.0' | ||
``` | ||
|
||
## Initializing Wootric | ||
|
@@ -74,12 +74,12 @@ WootricSDK task is to present a fully functional survey view with just a few lin | |
import com.wootric.androidsdk.Wootric; | ||
``` | ||
|
||
4. Configure the SDK with your client ID, secret and account token: | ||
4. Configure the SDK with your client ID and account token: | ||
|
||
All you need to do is to add this code to your Activity's `onCreate` method: | ||
|
||
```java | ||
Wootric wootric = Wootric.init(this, CLIENT_ID, CLIENT_SECRET, ACCOUNT_TOKEN); | ||
Wootric wootric = Wootric.init(this, CLIENT_ID, ACCOUNT_TOKEN); | ||
``` | ||
|
||
5. To display the survey (if user is eligible - this check is built in the method) use: | ||
|
@@ -99,7 +99,7 @@ import com.wootric.androidsdk.Wootric; | |
|
||
// Inside your Activity's onCreate method | ||
|
||
Wootric wootric = Wootric.init(this, YOUR_CLIENT_ID, YOUR_CLIENT_SECRET, YOUR_ACCOUNT_TOKEN); | ||
Wootric wootric = Wootric.init(this, YOUR_CLIENT_ID, YOUR_ACCOUNT_TOKEN); | ||
wootric.setEndUserEmail("[email protected]"); | ||
// Use only for testing | ||
wootric.setSurveyImmediately(true); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
public class MainActivity extends FragmentActivity { | ||
|
||
private static final String CLIENT_ID = "CLIENT ID"; | ||
private static final String CLIENT_SECRET = "CLIENT SECRET"; | ||
private static final String ACCOUNT_TOKEN = "ACCOUNT TOKEN"; | ||
|
||
@Override | ||
|
@@ -25,7 +24,7 @@ public void showSurvey(View view) { | |
|
||
private void startSurvey() { | ||
|
||
Wootric wootric = Wootric.init(this, CLIENT_ID, CLIENT_SECRET, ACCOUNT_TOKEN); | ||
Wootric wootric = Wootric.init(this, CLIENT_ID, ACCOUNT_TOKEN); | ||
wootric.setEndUserEmail("[email protected]"); | ||
wootric.setSurveyImmediately(true); | ||
wootric.survey(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters