Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // This is how you *DO NOT* do a fucking "REST" api... Serious-fucking-ly...
- // This works when serialized and sent
- $data = array(
- 'user_auth' => array(
- 'user_name' => $user,
- 'password' => md5($pass),
- 'version' => '.01',
- ),
- 'application_name' => 'MyAwesomeApp',
- 'name_value_list' => array(),
- );
- // This doesn't work when serialized and sent
- $data = array(
- 'application_name' => 'MyAwesomeApp',
- 'name_value_list' => array(),
- 'user_auth' => array(
- 'password' => md5($pass),
- 'user_name' => $user,
- 'version' => '.01',
- ),
- );
Add Comment
Please, Sign In to add comment