René's URL Explorer Experiment


Title: Create an example Twilio job which uses an HTTP endpoint / trigger · Issue #90 · triggerdotdev/api-reference · GitHub

Open Graph Title: Create an example Twilio job which uses an HTTP endpoint / trigger · Issue #90 · triggerdotdev/api-reference

X Title: Create an example Twilio job which uses an HTTP endpoint / trigger · Issue #90 · triggerdotdev/api-reference

Description: Overview HTTP endpoints allow you to subscribe to changes from an API. You can use defineHttpEndpoint to receive webhooks, verify them, and create an HTTP Trigger. Details: The task is to create a job example which is triggered by an HTT...

Open Graph Description: Overview HTTP endpoints allow you to subscribe to changes from an API. You can use defineHttpEndpoint to receive webhooks, verify them, and create an HTTP Trigger. Details: The task is to create a ...

X Description: Overview HTTP endpoints allow you to subscribe to changes from an API. You can use defineHttpEndpoint to receive webhooks, verify them, and create an HTTP Trigger. Details: The task is to create a ...

Opengraph URL: https://github.com/triggerdotdev/api-reference/issues/90

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Create an example Twilio job which uses an HTTP endpoint / trigger","articleBody":"### Overview\r\n\r\nHTTP endpoints allow you to subscribe to changes from an API. You can use `defineHttpEndpoint` to receive webhooks, verify them, and create an HTTP Trigger.\r\n\r\n### Details:\r\n\r\nThe task is to create a job example which is triggered by an HTTP Trigger when a change is received from Twilio.\r\n\r\nReference material:\r\n\r\n- Read our [HTTP endpoints docs](https://trigger.dev/docs/documentation/concepts/http-endpoints) \r\n- Read our [SDK reference docs](https://trigger.dev/docs/sdk/http-endpoint)\r\n- Check out our simple [Cal.com example](https://github.com/triggerdotdev/api-reference/blob/main/src/cal-http-endpoint.ts). This is a simple implementation.\r\n- Check out our [WhatsApp example](https://github.com/triggerdotdev/api-reference/blob/main/src/whatsapp-http-endpoint.ts). This is a more advanced implementation (using `respondWith`) because WhatsApp sends a verification GET request to confirm before the webhooks can be created. Most APIs don't required this.\r\n\r\n### Requirements:\r\n\r\n- Use the structure of our [Cal.com example](https://github.com/triggerdotdev/api-reference/blob/main/src/cal-http-endpoint.ts).\r\n- The example must connect to Twilio, receive a payload which triggers an HTTP Trigger, and then perform a simple job.\r\n\r\n### Guidelines:\r\n\r\n- The code must use TypeScript\r\n- The job must use an HTTP Trigger\r\n- Create a TypeScript type for the webhook, ideally use types from the official SDK from the API.\r\n- Cast the json to that type using `const body = await request.json() as WebhookPayload` \r\n- Use native fetch where no official SDK or incompatible auth\r\n- Avoid external packages apart from official SDKs\r\n- Prefer REST over GraphQL - avoid raw queries\r\n- Use a minimal `io.runTask()` callback - initialise clients and auth in global scope if possible\r\n- Leave clear comments with links to relevant developer docs, API key pages etc. \r\n\r\n### Required structure:\r\n\r\n1. Follow [this guide](https://github.com/triggerdotdev/api-reference#setup-how-to-use-this-repo) to get the project setup.​\r\n\r\n2. Create a new file in the src folder, named to match the API, with '-http-endpoint' at the end (e.g. GitHub would be called `github-http-endpoint.ts`).​\r\n\r\n3. The Trigger.dev client must be defined at the top of the job, with the 'api-reference' id:\r\n\r\n```ts\r\nconst client = new TriggerClient({ id: \"api-reference\" });\r\n```\r\n​\r\n4. You must add the Express specific lines to the bottom of the Job file:\r\n​\r\n```ts\r\n// These lines can be removed if you don't want to use express\r\nimport { createExpressServer } from \"@trigger.dev/express\";\r\ncreateExpressServer(client);\r\n```\r\n​\r\n5. You must add the new script to the package.json file, in this format:\r\n​\r\n```ts\r\n\"scripts\": {\r\n  //..other scripts\r\n  \"\u003capi-name>\": \"nodemon --watch src/\u003capi name>.ts -r tsconfig-paths/register -r dotenv/config src/\u003capi name>.ts\"\r\n}\r\n```\r\n> [!IMPORTANT]\r\nYou must test this Job works before submitting your PR, including a video or screenshot of a successful run. This may involve you having to setup accounts with services.\r\n>","author":{"url":"https://github.com/D-K-P","@type":"Person","name":"D-K-P"},"datePublished":"2023-11-17T13:51:48Z","url":"https://github.com/triggerdotdev/api-reference/issues/90"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c10d69f0-8532-b298-c845-22259a6add6a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B82:68EC4:D9497:131A17:6AFB6798
html-safe-nonce91f95a7063f3eac9b8ed5723b26056d01c91ad688e0fe980ad4d7efe3f4ec556
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjgyOjY4RUM0OkQ5NDk3OjEzMUExNzo2QUZCNjc5OCIsInZpc2l0b3JfaWQiOiIzMzc4MjUyMDYzNzA2OTMzMTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc0e94bf0d4bfd62d1821a6bb0656c55a7813c7c63a2132a613a81b7c89643e8c
hovercard-subject-tagissue:1999187623
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/api-reference/90/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5c8320ef895628db137092af36db35a28c8271e762ae01d2262f9f1423363151/triggerdotdev/api-reference/issues/90
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5c8320ef895628db137092af36db35a28c8271e762ae01d2262f9f1423363151/triggerdotdev/api-reference/issues/90
og:image:altOverview HTTP endpoints allow you to subscribe to changes from an API. You can use defineHttpEndpoint to receive webhooks, verify them, and create an HTTP Trigger. Details: The task is to create a ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameD-K-P
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/api-reference git https://github.com/triggerdotdev/api-reference.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id706112555
octolytics-dimension-repository_nwotriggerdotdev/api-reference
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id706112555
octolytics-dimension-repository_network_root_nwotriggerdotdev/api-reference
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/api-reference/issues/90#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Fapi-reference%2Fissues%2F90
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Fapi-reference%2Fissues%2F90
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Fapi-reference
Reloadhttps://github.com/triggerdotdev/api-reference/issues/90
Reloadhttps://github.com/triggerdotdev/api-reference/issues/90
Reloadhttps://github.com/triggerdotdev/api-reference/issues/90
triggerdotdevhttps://github.com/triggerdotdev
api-referencehttps://github.com/triggerdotdev/api-reference
Codehttps://github.com/triggerdotdev/api-reference
Issueshttps://github.com/triggerdotdev/api-reference/issues
Pull requests1 (1)https://github.com/triggerdotdev/api-reference/pulls
Actionshttps://github.com/triggerdotdev/api-reference/actions
Projectshttps://github.com/triggerdotdev/api-reference/projects
Security and qualityhttps://github.com/triggerdotdev/api-reference/security
Insightshttps://github.com/triggerdotdev/api-reference/pulse
https://github.com/triggerdotdev/api-reference
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/api-reference/issues/90
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/api-reference/issues/90
#139https://github.com/triggerdotdev/api-reference/pull/139
Create an example Twilio job which uses an HTTP endpoint / triggerhttps://github.com/triggerdotdev/api-reference/issues/90#top
#139https://github.com/triggerdotdev/api-reference/pull/139
https://github.com/biplobsd
💰 Rewardedhttps://github.com/triggerdotdev/api-reference/issues?q=state%3Aopen%20label%3A%22%F0%9F%92%B0%20Rewarded%22
https://github.com/D-K-P
D-K-Phttps://github.com/D-K-P
on Nov 17, 2023https://github.com/triggerdotdev/api-reference/issues/90#issue-1999187623
HTTP endpoints docshttps://trigger.dev/docs/documentation/concepts/http-endpoints
SDK reference docshttps://trigger.dev/docs/sdk/http-endpoint
Cal.com examplehttps://github.com/triggerdotdev/api-reference/blob/main/src/cal-http-endpoint.ts
WhatsApp examplehttps://github.com/triggerdotdev/api-reference/blob/main/src/whatsapp-http-endpoint.ts
Cal.com examplehttps://github.com/triggerdotdev/api-reference/blob/main/src/cal-http-endpoint.ts
this guidehttps://github.com/triggerdotdev/api-reference#setup-how-to-use-this-repo
https://github.com/hmacr
hmacrhttps://github.com/hmacr
on Nov 27, 2023https://github.com/triggerdotdev/api-reference/issues/90#issuecomment-1827356981
@D-K-Phttps://github.com/D-K-P
D-K-Phttps://github.com/D-K-P
hmacrhttps://github.com/hmacr
on Nov 27, 2023https://github.com/triggerdotdev/api-reference/issues/90#event-11072641772
https://github.com/D-K-P
D-K-Phttps://github.com/D-K-P
on Dec 6, 2023https://github.com/triggerdotdev/api-reference/issues/90#issuecomment-1842627159
@hmacrhttps://github.com/hmacr
https://github.com/D-K-P
D-K-Phttps://github.com/D-K-P
on Dec 8, 2023https://github.com/triggerdotdev/api-reference/issues/90#issuecomment-1847358933
@hmacrhttps://github.com/hmacr
@biplobsdhttps://github.com/biplobsd
D-K-Phttps://github.com/D-K-P
hmacrhttps://github.com/hmacr
on Dec 8, 2023https://github.com/triggerdotdev/api-reference/issues/90#event-11194671984
https://github.com/biplobsd
biplobsdhttps://github.com/biplobsd
on Dec 8, 2023https://github.com/triggerdotdev/api-reference/issues/90#issuecomment-1847363562
@D-K-Phttps://github.com/D-K-P
D-K-Phttps://github.com/D-K-P
biplobsdhttps://github.com/biplobsd
on Dec 8, 2023https://github.com/triggerdotdev/api-reference/issues/90#event-11194707826
biplobsdhttps://github.com/biplobsd
on Dec 8, 2023https://github.com/triggerdotdev/api-reference/issues/90#event-11195234811
Added Twilio http endpoint example (triggerdotdev#90)https://github.com/biplobsd/api-reference/commit/0dd2c270bc74ad49967d1535d18c67240379ad6f
triggerdotdev#90https://github.com/triggerdotdev/api-reference/issues/90
0dd2c27https://github.com/biplobsd/api-reference/commit/0dd2c270bc74ad49967d1535d18c67240379ad6f
D-K-Phttps://github.com/D-K-P
completedhttps://github.com/triggerdotdev/api-reference/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#139https://github.com/triggerdotdev/api-reference/pull/139
on Dec 12, 2023https://github.com/triggerdotdev/api-reference/issues/90#event-11226887766
D-K-Phttps://github.com/D-K-P
on Dec 12, 2023https://github.com/triggerdotdev/api-reference/issues/90#event-11226887889
Added Twilio http endpoint example (#90) (#139)https://github.com/triggerdotdev/api-reference/commit/83a7357f6419f07ee2a48dd8306134799dc65af7
#90https://github.com/triggerdotdev/api-reference/issues/90
#139https://github.com/triggerdotdev/api-reference/pull/139
83a7357https://github.com/triggerdotdev/api-reference/commit/83a7357f6419f07ee2a48dd8306134799dc65af7
https://github.com/apps/algora-pbc
algora-pbchttps://github.com/apps/algora-pbc
on Dec 13, 2023https://github.com/triggerdotdev/api-reference/issues/90#issuecomment-1853740137
Algora PBChttps://algora.io
@biplobsdhttps://github.com/biplobsd
algora-pbchttps://github.com/apps/algora-pbc
💰 Rewardedhttps://github.com/triggerdotdev/api-reference/issues?q=state%3Aopen%20label%3A%22%F0%9F%92%B0%20Rewarded%22
on Dec 13, 2023https://github.com/triggerdotdev/api-reference/issues/90#event-11234680925
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/api-reference/issues/90
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/api-reference/issues/90
biplobsdhttps://github.com/biplobsd
💰 Rewardedhttps://github.com/triggerdotdev/api-reference/issues?q=state%3Aopen%20label%3A%22%F0%9F%92%B0%20Rewarded%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.