{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/250","repository_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk","labels_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/250/comments","events_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/250/events","html_url":"https://github.com/facebook/facebook-php-ads-sdk/pull/250","id":174390389,"number":250,"title":"Update CurlAdapter to parse JSON values in headers","user":{"login":"aarondfrancis","id":881931,"avatar_url":"https://avatars.githubusercontent.com/u/881931?v=3","gravatar_id":"","url":"https://api.github.com/users/aarondfrancis","html_url":"https://github.com/aarondfrancis","followers_url":"https://api.github.com/users/aarondfrancis/followers","following_url":"https://api.github.com/users/aarondfrancis/following{/other_user}","gists_url":"https://api.github.com/users/aarondfrancis/gists{/gist_id}","starred_url":"https://api.github.com/users/aarondfrancis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarondfrancis/subscriptions","organizations_url":"https://api.github.com/users/aarondfrancis/orgs","repos_url":"https://api.github.com/users/aarondfrancis/repos","events_url":"https://api.github.com/users/aarondfrancis/events{/privacy}","received_events_url":"https://api.github.com/users/aarondfrancis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-31T22:04:19Z","updated_at":"2016-08-31T23:57:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/pulls/250","html_url":"https://github.com/facebook/facebook-php-ads-sdk/pull/250","diff_url":"https://github.com/facebook/facebook-php-ads-sdk/pull/250.diff","patch_url":"https://github.com/facebook/facebook-php-ads-sdk/pull/250.patch"},"body":"Facebook returns the rate limit header as a JSON string (https://developers.facebook.com/docs/marketing-api/insights/best-practices/v2.7) , and the current implementation of the CurlAdapter only returns the value up to the first colon.\r\n\r\nSo instead of\r\n\r\n```json\r\n\"x-fb-ads-insights-throttle\" => \" {\"app_id_util_pct\": 0.00,\"acc_id_util_pct\": 0.00}\"\r\n```\r\n\r\nit shows up as\r\n\r\n```json\r\n\"x-fb-ads-insights-throttle\" => \" {\"app_id_util_pct\"\"\r\n```\r\n\r\n...which is less than helpful!\r\n\r\nThis fixes that problem."},"comment":{"url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/comments/243937865","html_url":"https://github.com/facebook/facebook-php-ads-sdk/pull/250#issuecomment-243937865","issue_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/250","id":243937865,"user":{"login":"facebook-github-bot-1","id":8397290,"avatar_url":"https://avatars.githubusercontent.com/u/8397290?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot-1","html_url":"https://github.com/facebook-github-bot-1","followers_url":"https://api.github.com/users/facebook-github-bot-1/followers","following_url":"https://api.github.com/users/facebook-github-bot-1/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot-1/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot-1/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot-1/orgs","repos_url":"https://api.github.com/users/facebook-github-bot-1/repos","events_url":"https://api.github.com/users/facebook-github-bot-1/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot-1/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T23:57:59Z","updated_at":"2016-08-31T23:57:59Z","body":"Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!"}}
{"actor":{"display_login":"facebook-github-bot-1"}}