Skip to content

Instantly share code, notes, and snippets.

@fauzisho
Created October 10, 2017 09:15
Show Gist options
  • Select an option

  • Save fauzisho/1f254d2bed479760fb00012d9643ffe5 to your computer and use it in GitHub Desktop.

Select an option

Save fauzisho/1f254d2bed479760fb00012d9643ffe5 to your computer and use it in GitHub Desktop.
private void sendSurvey() {
String message = "Survey Qiscus";
JSONObject payload = new JSONObject();
try {
payload.put("sticker_url", "https://res.cloudinary.com/qiscus/image/upload/fxwzBRPcdz/Bubble-Pup-Yup.gif");
payload.put("profile_url", "http://res.cloudinary.com/diufvqwbr/image/upload/v1507608923/logo_gb4lzy.png");
payload.put("title_survey", "Qiscus@ Selles Survey");
payload.put("date", "2017-10-29");
payload.put("link_url", "https://www.qiscus.com/");
} catch (JSONException e) {
e.printStackTrace();
}
QiscusComment comment = QiscusComment.generateCustomMessage(message, "survey", payload,
qiscusChatRoom.getId(), qiscusChatRoom.getLastTopicId());
sendQiscusComment(comment);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment