Created
October 10, 2017 09:15
-
-
Save fauzisho/1f254d2bed479760fb00012d9643ffe5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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