Title: Document the new error handling functionality from python-http-client · Issue #442 · sendgrid/sendgrid-python · GitHub
Open Graph Title: Document the new error handling functionality from python-http-client · Issue #442 · sendgrid/sendgrid-python
X Title: Document the new error handling functionality from python-http-client · Issue #442 · sendgrid/sendgrid-python
Description: Issue Summary Here is a PR that implements the new error handling: sendgrid/python-http-client#17 Here is an example of usage: import sendgrid import os from sendgrid.helpers.mail import * from python_http_client import exceptions sg = s...
Open Graph Description: Issue Summary Here is a PR that implements the new error handling: sendgrid/python-http-client#17 Here is an example of usage: import sendgrid import os from sendgrid.helpers.mail import * from pyt...
X Description: Issue Summary Here is a PR that implements the new error handling: sendgrid/python-http-client#17 Here is an example of usage: import sendgrid import os from sendgrid.helpers.mail import * from pyt...
Opengraph URL: https://github.com/sendgrid/sendgrid-python/issues/442
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document the new error handling functionality from python-http-client","articleBody":"#### Issue Summary\r\n\r\nHere is a PR that implements the new error handling: https://github.com/sendgrid/python-http-client/pull/17\r\n\r\nHere is an example of usage:\r\n\r\n```python\r\nimport sendgrid\r\nimport os\r\nfrom sendgrid.helpers.mail import *\r\nfrom python_http_client import exceptions\r\n\r\nsg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))\r\nfrom_email = Email(\"dx@sendgrid.com\")\r\nto_email = Email(\"elmer.thomas@sendgrid.com\")\r\nsubject = \"Sending with SendGrid is Fun\"\r\ncontent = Content(\"text/plain\", \"and easy to do anywhere, even with Python\")\r\nmail = Mail(from_email, subject, to_email, content)\r\ntry:\r\n response = sg.client.mail.send.post(request_body=mail.get())\r\nexcept exceptions.BadRequestsError as e:\r\n print(e.body)\r\n exit()\r\nprint(response.status_code)\r\nprint(response.body)\r\nprint(response.headers)\r\n```\r\n\r\nThe examples should go under USE_CASES.md and be referenced from TROUBLESHOOTING.md under error handling.","author":{"url":"https://github.com/thinkingserious","@type":"Person","name":"thinkingserious"},"datePublished":"2017-10-26T17:49:22Z","url":"https://github.com/sendgrid/sendgrid-python/issues/442"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f7062bf8-f1a0-fd80-bc1b-b29d35c414ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B922:136CDA:61A0D6:816E9F:6B01A334 |
| html-safe-nonce | 66981dad8c7a4da3c6c0b7c8df9e41ccd24bf8ceff4c1fb78aa69caa92231083 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTIyOjEzNkNEQTo2MUEwRDY6ODE2RTlGOjZCMDFBMzM0IiwidmlzaXRvcl9pZCI6IjcxMDk2MzUzMTAxOTkzNTAwNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 61df25532490765a0117484dc24e07614f29a9f9081f652a4bb176a29ee7205e |
| hovercard-subject-tag | issue:268851828 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sendgrid/sendgrid-python/442/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1a73eb3ed97eb30e90f364e72badb5e194216793d684b6942a0a229629abd8f/sendgrid/sendgrid-python/issues/442 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1a73eb3ed97eb30e90f364e72badb5e194216793d684b6942a0a229629abd8f/sendgrid/sendgrid-python/issues/442 |
| og:image:alt | Issue Summary Here is a PR that implements the new error handling: sendgrid/python-http-client#17 Here is an example of usage: import sendgrid import os from sendgrid.helpers.mail import * from pyt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thinkingserious |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/sendgrid/sendgrid-python git https://github.com/sendgrid/sendgrid-python.git |
| octolytics-dimension-user_id | 181234 |
| octolytics-dimension-user_login | sendgrid |
| octolytics-dimension-repository_id | 3546794 |
| octolytics-dimension-repository_nwo | sendgrid/sendgrid-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3546794 |
| octolytics-dimension-repository_network_root_nwo | sendgrid/sendgrid-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width