{"action":"created","issue":{"url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/348","labels_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/348/comments","events_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/348/events","html_url":"https://github.com/jaymedavis/stripe.net/pull/348","id":83893735,"number":348,"title":"add support for Stripe-Account header - to make requests on behalf of connected accounts","user":{"login":"aidanbebbington","id":5360551,"avatar_url":"https://avatars.githubusercontent.com/u/5360551?v=3","gravatar_id":"","url":"https://api.github.com/users/aidanbebbington","html_url":"https://github.com/aidanbebbington","followers_url":"https://api.github.com/users/aidanbebbington/followers","following_url":"https://api.github.com/users/aidanbebbington/following{/other_user}","gists_url":"https://api.github.com/users/aidanbebbington/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanbebbington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanbebbington/subscriptions","organizations_url":"https://api.github.com/users/aidanbebbington/orgs","repos_url":"https://api.github.com/users/aidanbebbington/repos","events_url":"https://api.github.com/users/aidanbebbington/events{/privacy}","received_events_url":"https://api.github.com/users/aidanbebbington/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-02T07:44:55Z","updated_at":"2015-07-19T21:55:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jaymedavis/stripe.net/pulls/348","html_url":"https://github.com/jaymedavis/stripe.net/pull/348","diff_url":"https://github.com/jaymedavis/stripe.net/pull/348.diff","patch_url":"https://github.com/jaymedavis/stripe.net/pull/348.patch"},"body":"Feels a bit wrong that I changed so much stuff to set one header, but just a little hesitant to make large structural changes to the project at this stage, and this seemed like it followed the existing structure best.  Let me know if you want it refactored though."},"comment":{"url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/comments/122709180","html_url":"https://github.com/jaymedavis/stripe.net/pull/348#issuecomment-122709180","issue_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/348","id":122709180,"user":{"login":"jbarker4682","id":1664024,"avatar_url":"https://avatars.githubusercontent.com/u/1664024?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarker4682","html_url":"https://github.com/jbarker4682","followers_url":"https://api.github.com/users/jbarker4682/followers","following_url":"https://api.github.com/users/jbarker4682/following{/other_user}","gists_url":"https://api.github.com/users/jbarker4682/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarker4682/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarker4682/subscriptions","organizations_url":"https://api.github.com/users/jbarker4682/orgs","repos_url":"https://api.github.com/users/jbarker4682/repos","events_url":"https://api.github.com/users/jbarker4682/events{/privacy}","received_events_url":"https://api.github.com/users/jbarker4682/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T21:55:36Z","updated_at":"2015-07-19T21:55:36Z","body":"Hi Jayme,\r\n\r\nTo clarify, anything that would only be set once per life if a service should ideally be injected into the service constructor as an options param.  Anything that can change from one call to the next should be passed in to the method directly as its own options param.  Also, you can maintain backwards compatability by leaving your existing method signatures as they are and creating new overloads that accepth the new options object...  to prevent code duplication, move the body of each existing function inside its newer version, and call the new version from the old version..."}}