Class Test


  • public class Test
    extends java.lang.Object
    1. Создать команду (bgcrm), аккаунт (bgcrm) 2. Создать приложение. Client ID 112244252083.111636011841 Client Secret a8f7c329182524aaf5559d0611000e61 3. OAuth Settings You must specify at least one redirect URL for OAuth to work. If you pass a URL in an OAuth request, it must (at least partially) match one of the URLs you enter here. Learn more Redirect URL(s) 4. https://slack.com/oauth/authorize?client_id=112244252083.111636011841&scope=channels:history channels:read channels:write users:read groups:read groups:write groups:history chat:write:user chat:write:bot -> http://bgcrm.ru/oauth?code=112244252083.130808036180.f7a36c46e4 5. https://slack.com/api/oauth.access?code=112244252083.130808036180.f7a36c46e4&client_id=112244252083.111636011841&client_secret=a8f7c329182524aaf5559d0611000e61 -> {"ok":true,"access_token":"xoxp-112244252083-112987389558-112322797394-6aa3f151be1725ee6ee0265a2dff9b5e","scope":"identify,channels:history,groups:history,channels:read,groups:read,users:read,users:read.email,channels:write,chat:write:user,chat:write:bot,groups:write","user_id":"U3AV1BFGE","team_name":"bgcrm","team_id":"T3A767E2F"}
    • Constructor Summary

      Constructors 
      Constructor Description
      Test()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Test

        public Test()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)