{"action":"created","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/189","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-python","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/189/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/189/events","html_url":"https://github.com/sendgrid/sendgrid-python/issues/189","id":164743347,"number":189,"title":"Disable open/click tracking response","user":{"login":"inversquare","id":12241977,"avatar_url":"https://avatars.githubusercontent.com/u/12241977?v=3","gravatar_id":"","url":"https://api.github.com/users/inversquare","html_url":"https://github.com/inversquare","followers_url":"https://api.github.com/users/inversquare/followers","following_url":"https://api.github.com/users/inversquare/following{/other_user}","gists_url":"https://api.github.com/users/inversquare/gists{/gist_id}","starred_url":"https://api.github.com/users/inversquare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inversquare/subscriptions","organizations_url":"https://api.github.com/users/inversquare/orgs","repos_url":"https://api.github.com/users/inversquare/repos","events_url":"https://api.github.com/users/inversquare/events{/privacy}","received_events_url":"https://api.github.com/users/inversquare/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sendgrid/sendgrid-python/labels/status:%20help%20wanted","name":"status: help wanted","color":"e99695"},{"url":"https://api.github.com/repos/sendgrid/sendgrid-python/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-11T00:56:24Z","updated_at":"2016-07-11T21:31:32Z","closed_at":"2016-07-11T21:31:31Z","body":"#### Issue Summary\r\n\r\nHello!\r\n\r\nI'm receiving some odd feedback when I attempt to disable tracking settings for internal test messages. I explicitly set the enable parameter to `False`, but the response suggests I haven't done so.\r\n\r\nHere is the output of `print(e.read())`:\r\n\r\n```\r\n{\"errors\":[{\"message\":\"The click_tracking enable parameter is required.\",\"field\":\"tracking_settings.click_tracking.enable\",\"help\":\"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.tracking_settings.click_tracking.enable\"},{\"message\":\"The open_tracking enable parameter is required.\",\"field\":\"tracking_settings.open_tracking.enable\",\"help\":\"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.tracking_settings.open_tracking.enable\"},{\"message\":\"The subscription_tracking enable parameter is required.\",\"field\":\"tracking_settings.subscription_tracking.enable\",\"help\":\"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.tracking_settings.subscription_tracking.enable\"}]}\r\n```\r\n\r\nHere is the relevant section of `print(mail.get())`:\r\n\r\n`'tracking_settings': {'subscription_tracking': {}, 'open_tracking': {}, 'click_tracking': {}},`\r\n\r\nI don't know if this is a bug, or if I'm improperly using the API. Thought I would bring it to your attention.\r\n\r\nThanks!\r\n\r\n#### Steps to Reproduce\r\n\r\nMy code:\r\n\r\n```\r\nmail = Mail(from_email, subject, to_email, content)\r\n\r\nif '@internalemailaddress.com' in email:\r\n        tracking_settings = TrackingSettings()\r\n        tracking_settings.set_click_tracking(ClickTracking(enable=False, False))\r\n        tracking_settings.set_open_tracking(OpenTracking(enable=False))\r\n        tracking_settings.set_subscription_tracking(SubscriptionTracking(enable=False))\r\n        mail.set_tracking_settings(tracking_settings)\r\n```\r\n\r\n\r\n#### Technical details:\r\n\r\n* sendgrid-python Version: master (latest commit: `d199afc`)\r\n* Python Version: 3.5"},"comment":{"url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/comments/231871831","html_url":"https://github.com/sendgrid/sendgrid-python/issues/189#issuecomment-231871831","issue_url":"https://api.github.com/repos/sendgrid/sendgrid-python/issues/189","id":231871831,"user":{"login":"thinkingserious","id":146695,"avatar_url":"https://avatars.githubusercontent.com/u/146695?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkingserious","html_url":"https://github.com/thinkingserious","followers_url":"https://api.github.com/users/thinkingserious/followers","following_url":"https://api.github.com/users/thinkingserious/following{/other_user}","gists_url":"https://api.github.com/users/thinkingserious/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkingserious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkingserious/subscriptions","organizations_url":"https://api.github.com/users/thinkingserious/orgs","repos_url":"https://api.github.com/users/thinkingserious/repos","events_url":"https://api.github.com/users/thinkingserious/events{/privacy}","received_events_url":"https://api.github.com/users/thinkingserious/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T21:31:31Z","updated_at":"2016-07-11T21:31:31Z","body":"@inversquare,\r\n\r\nThis is now fixed with version 3.0.5: https://github.com/sendgrid/sendgrid-python/releases/tag/v3.0.5\r\n\r\nThanks!"}}
{"actor":{"display_login":"thinkingserious"}}