Skip to content

Commit

Permalink
Merge pull request #8 from slowbro/api_methods
Browse files Browse the repository at this point in the history
update Commander to have all current API methods - thanks @slowbro
  • Loading branch information
Connor S. Parks authored and Connor S. Parks committed Feb 4, 2015
2 parents 565ac2b + 6844355 commit 953bb01
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/Core/Commander.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ class Commander {
'endpoint' => '/auth.test',
'token' => true
],
'channels.archive' => [
'token' => true,
'endpoint' => '/channels.archive'
],
'channels.create' => [
'token' => true,
'endpoint' => '/channels.create'
],
'channels.history' => [
'token' => true,
'endpoint' => '/channels.history'
Expand Down Expand Up @@ -58,6 +66,10 @@ class Commander {
'token' => true,
'endpoint' => '/channels.mark'
],
'channels.rename' => [
'token' => true,
'endpoint' => '/channels.rename'
],
'channels.setPurpose' => [
'token' => true,
'endpoint' => '/channels.setPurpose',
Expand All @@ -72,6 +84,10 @@ class Commander {
'topic'
]
],
'channels.unarchive' => [
'token' => true,
'endpoint' => '/channels.unarchive'
],
'chat.delete' => [
'token' => true,
'endpoint' => '/chat.delete'
Expand Down Expand Up @@ -99,6 +115,14 @@ class Commander {
'token' => true,
'endpoint' => '/files.info'
],
'files.delete' => [
'token' => true,
'endpoint' => '/files.delete'
],
'files.info' => [
'token' => true,
'endpoint' => '/files.info'
],
'files.list' => [
'token' => true,
'endpoint' => '/files.list'
Expand All @@ -116,6 +140,14 @@ class Commander {
'initial_comment'
]
],
'groups.archive' => [
'token' => true,
'endpoint' => '/groups.archive'
],
'groups.close' => [
'token' => true,
'endpoint' => '/groups.close'
],
'groups.create' => [
'token' => true,
'endpoint' => '/groups.create',
Expand Down Expand Up @@ -151,6 +183,10 @@ class Commander {
'token' => true,
'endpoint' => '/groups.mark'
],
'groups.open' => [
'token' => true,
'endpoint' => '/groups.open'
],
'groups.setPurpose' => [
'token' => true,
'endpoint' => '/groups.setPurpose',
Expand All @@ -165,6 +201,14 @@ class Commander {
'topic'
]
],
'groups.unarchive' => [
'token' => true,
'endpoint' => '/groups.unarchive'
],
'im.close' => [
'token' => true,
'endpoint' => '/im.close'
],
'im.history' => [
'token' => true,
'endpoint' => '/im.history'
Expand All @@ -177,10 +221,18 @@ class Commander {
'token' => true,
'endpoint' => '/im.mark'
],
'im.open' => [
'token' => true,
'endpoint' => '/im.open'
],
'oauth.access' => [
'token' => false,
'endpoint' => '/oauth.access'
],
'rtm.start' => [
'token' => true,
'endpoint' => '/rtm.start'
],
'search.all' => [
'token' => true,
'endpoint' => '/search.all'
Expand All @@ -197,6 +249,10 @@ class Commander {
'token' => true,
'endpoint' => '/stars.list'
],
'users.getPresence' => [
'token' => true,
'endpoint' => '/users.getPresence'
],
'users.info' => [
'token' => true,
'endpoint' => '/users.info'
Expand All @@ -208,6 +264,10 @@ class Commander {
'users.setActive' => [
'token' => true,
'endpoint' => '/users.setActive'
],
'users.setPresence' => [
'token' => true,
'endpoint' => '/users.setPresence'
]
];

Expand Down

0 comments on commit 953bb01

Please sign in to comment.