Last active
August 29, 2015 14:22
-
-
Save felixding/2dab58cba2294ccb276f to your computer and use it in GitHub Desktop.
待客的PHP集成示范
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 | |
$data = array( | |
"name" => $user['name'], | |
"external_id" => $user['id'], | |
"email" => $user['email'] | |
); | |
$api_secret = "your api secret"; | |
$token = JWT::encode($token, $api_secret); | |
header("http://your-name.daikeapp.com/?jwt=".$token); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment