{"action":"created","issue":{"url":"https://api.github.com/repos/balanced/balanced-php/issues/122","labels_url":"https://api.github.com/repos/balanced/balanced-php/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/balanced/balanced-php/issues/122/comments","events_url":"https://api.github.com/repos/balanced/balanced-php/issues/122/events","html_url":"https://github.com/balanced/balanced-php/issues/122","id":54524542,"number":122,"title":"It takes two requests to create a customer or card","user":{"login":"mcampa","id":1934727,"avatar_url":"https://avatars.githubusercontent.com/u/1934727?v=3","gravatar_id":"","url":"https://api.github.com/users/mcampa","html_url":"https://github.com/mcampa","followers_url":"https://api.github.com/users/mcampa/followers","following_url":"https://api.github.com/users/mcampa/following{/other_user}","gists_url":"https://api.github.com/users/mcampa/gists{/gist_id}","starred_url":"https://api.github.com/users/mcampa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcampa/subscriptions","organizations_url":"https://api.github.com/users/mcampa/orgs","repos_url":"https://api.github.com/users/mcampa/repos","events_url":"https://api.github.com/users/mcampa/events{/privacy}","received_events_url":"https://api.github.com/users/mcampa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-16T00:21:25Z","updated_at":"2015-01-16T20:35:46Z","closed_at":"2015-01-16T20:35:46Z","body":"It takes two requests to create a customer or card, with the current php library.\r\n\r\nThis is what the documents show on how to create a `Customer`\r\n```php\r\n$marketplace = Balanced\\Marketplace::mine();\r\n$customer = $marketplace->customers->create($params);\r\n```\r\nThis takes two requests, and it is extremely slow to fetch the `marketplace`. It's taking almost 6 seconds.\r\n\r\nBut when I switch to CURL I see that I can create a customer with one request.\r\n\r\nSo, how do I create a customer with one request?"},"comment":{"url":"https://api.github.com/repos/balanced/balanced-php/issues/comments/70318028","html_url":"https://github.com/balanced/balanced-php/issues/122#issuecomment-70318028","issue_url":"https://api.github.com/repos/balanced/balanced-php/issues/122","id":70318028,"user":{"login":"mjallday","id":252280,"avatar_url":"https://avatars.githubusercontent.com/u/252280?v=3","gravatar_id":"","url":"https://api.github.com/users/mjallday","html_url":"https://github.com/mjallday","followers_url":"https://api.github.com/users/mjallday/followers","following_url":"https://api.github.com/users/mjallday/following{/other_user}","gists_url":"https://api.github.com/users/mjallday/gists{/gist_id}","starred_url":"https://api.github.com/users/mjallday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjallday/subscriptions","organizations_url":"https://api.github.com/users/mjallday/orgs","repos_url":"https://api.github.com/users/mjallday/repos","events_url":"https://api.github.com/users/mjallday/events{/privacy}","received_events_url":"https://api.github.com/users/mjallday/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T20:35:46Z","updated_at":"2015-01-16T20:35:46Z","body":"Yup, you're right, it should be much simpler. I've opened another issue (#123) to resolve this. I'm going to close this one out, thanks for bringing this to our attention."}}