You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use HelpStack, don't forget to send a Pull Request to this Wiki page: [HelpStack Android users](https://github.com/happyfoxinc/helpstack-android/wiki/HelpStack-Android-users)
30
+
## HelpStack Android Users
31
+
If you use HelpStack in your app, please let us know by adding yourself to this Wiki page: [HelpStack Android users](https://github.com/happyfoxinc/helpstack-android/wiki/HelpStack-Android-users)
33
32
34
33
## Installation
35
34
@@ -91,31 +90,25 @@ Obtain the necessary credentials for the gear of your choice and create a suitab
91
90
##### i. HappyFox:
92
91
93
92
public class HSApplication extends Application {
94
-
95
93
HSHelpStack helpStack;
96
94
97
95
@Override
98
96
public void onCreate() {
99
97
super.onCreate();
100
98
101
-
// Get the HSHelpStack instance
102
-
helpStack = HSHelpStack.getInstance(this);
99
+
helpStack = HSHelpStack.getInstance(this); // Get the HSHelpStack instance
103
100
104
-
// Crate the Gear object
105
101
HSHappyfoxGear happyfoxGear = new HSHappyfoxGear(
106
102
"<Account URL>",
107
103
"<Your API Key>",
108
104
"<Your Auth Code>",
109
105
"<Category ID>",
110
-
"<Priority ID>");
106
+
"<Priority ID>"); // Create the Gear object
111
107
112
-
// [Optional] Set the Section Id of your Knowledge Base articles
113
-
happyfoxGear.setSectionId("<Section id>");
108
+
happyfoxGear.setSectionId("<Section id>"); // Optional. Set the Section Id of your Knowledge Base articles.
114
109
115
-
// Set the Gear
116
-
helpStack.setGear(happyfoxGear);
110
+
helpStack.setGear(happyfoxGear); // Set the Gear
117
111
}
118
-
119
112
}
120
113
121
114
The API key and Auth code can be found in your HappyFox account under *Manage* > *Integrations*. You can generate an API key and Auth code by clicking on the API configure link.
@@ -130,29 +123,23 @@ Priority ID and Category ID cannot be nil. These are the ID's of the priority an
130
123
##### ii. Zendesk:
131
124
132
125
public class HSApplication extends Application {
133
-
134
126
HSHelpStack helpStack;
135
127
136
128
@Override
137
129
public void onCreate() {
138
130
super.onCreate();
139
131
140
-
// Get the HSHelpStack instance
141
-
helpStack = HSHelpStack.getInstance(this);
132
+
helpStack = HSHelpStack.getInstance(this); // Get the HSHelpStack instance
142
133
143
-
// Crate the Gear object
144
134
HSZendeskGear zendeskGear = new HSZendeskGear(
145
135
"<Account URL>",
146
136
"<Staff Email Address>",
147
-
"<API Token");
137
+
"<API Token"); // Create the Gear object
148
138
149
-
// [Optional] Set the Section Id of your Help Center articles
150
-
zendeskGear.setSectionId("<Section id>");
139
+
zendeskGear.setSectionId("<Section id>"); // Optional. Set the Section Id of your Help Center articles.
151
140
152
-
// Set the Gear
153
-
helpStack.setGear(zendeskGear);
141
+
helpStack.setGear(zendeskGear); // Set the Gear
154
142
}
155
-
156
143
}
157
144
158
145
The token can be found in your Zendesk account under Settings > Channels > API. Setting the Section ID of your Help Center articles is optional. You can find the sections in your Zendesk account, as mentioned below:
@@ -163,27 +150,22 @@ The token can be found in your Zendesk account under Settings > Channels > API.
163
150
##### iii. Desk:
164
151
165
152
public class HSApplication extends Application {
166
-
167
153
HSHelpStack helpStack;
168
154
169
155
@Override
170
156
public void onCreate() {
171
157
super.onCreate();
172
158
173
-
// Get the HSHelpStack instance
174
-
helpStack = HSHelpStack.getInstance(this);
159
+
helpStack = HSHelpStack.getInstance(this); // Get the HSHelpStack instance
0 commit comments