Skip to content

Instantly share code, notes, and snippets.

@felixding
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixding/2dab58cba2294ccb276f to your computer and use it in GitHub Desktop.
Save felixding/2dab58cba2294ccb276f to your computer and use it in GitHub Desktop.
待客的PHP集成示范
<?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