Created
July 12, 2015 10:36
-
-
Save Darkflib/2d6f9473e2bc8df0f945 to your computer and use it in GitHub Desktop.
Slack signup
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
<?php | |
//requires guzzle | |
require_once '../vendor/autoload.php'; | |
$token='xoxp-3180528888-111111-98229-b4e1b7'; | |
$email='[email protected]'; | |
$teamname='example'; | |
$url="https://${teamname}.slack.com/api/users.admin.invite"; | |
echo $url; | |
$client = new GuzzleHttp\Client(); | |
$res = $client->post($url, [ | |
'form_params' => [ | |
'email' => $email, | |
'token' => $token | |
] | |
]); | |
echo $res->getStatusCode(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment