Created
February 8, 2017 17:33
-
-
Save eisenjulian/c1c17d4e78d085795e5d3e2640f90fde to your computer and use it in GitHub Desktop.
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
public static void main(String[] args) { | |
Runner.run(context -> { | |
final String businessId = "holaSim"; | |
final String pageId = "1793427134203438"; | |
final String accessToken = "EAAZABjaJiSJsBANLRDF8czZCuyEAkFDY6JEZBeJGyhOb3wqDVuKOraCarUKsJijGwGcsABxTZBM1Q18NZC8K5rQbr4SxFRbhjOZBYs8MmbvHN9ZC46LZABf905LCEvzibzoQnkpwZAqYEBOrOgI1DD161LuIlyZB3WfmO4TBqriF2HaKKAxAhQ0H5vp45Q7lX7ZAONvU6ZCPiY0ZCOwZDZD"; | |
final ChatChannelDAO chatChannelDAO = context.getDAO(ChatChannelDAO.class); | |
ChatChannel.buildAndSave(businessId, ChatPlatform.MESSENGER, true, pageId, accessToken, null); | |
final List<ChatChannel> channels = chatChannelDAO.findBy(businessId); | |
System.out.println(channels.size()); | |
chatChannelDAO.remove(channels.get(0).getId()); | |
System.out.println(chatChannelDAO.findBy(businessId).size()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment