[ create a new paste ] login | about

Link: http://codepad.org/uqF0DVMX    [ raw code | output | fork ]

PHP, pasted on May 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

$response = '{
  "access_token":"340",
  "user":{
    "username":"ferfer",
    "bio":"","website":""
  }
}';

$result = json_decode($response,true);
$access = $result['access_token'];

echo $access;


Output:
1
340


Create a new paste based on this one


Comments: