Skip to content

Instantly share code, notes, and snippets.

View shrutiburman's full-sized avatar
🏠
Working from home

shrutiburman

🏠
Working from home
View GitHub Profile
@shrutiburman
shrutiburman / contribution.md
Created August 2, 2023 06:52
Copied contents of rest-proxy contribution guidelines

Add a new CPR transform function

Endpoints in api-definitions can optionally specify request and response transformations between the public client and the internal downstream service. The full set of CPR request transforms can be found in Internal Product Docs: Request Transform Glossary and Response Transform Glossary. Each endpoint can have a different set of request and response transformations. The same transformation can also appear multiple times in the chain of transformations specified by each endpoint, with different parameters.

Request and response transformations are very powerful, and have exclusive access during execution to the full ProxyRequestContext object for the ongoing request. They can modify everything about the request and response, including HTTP headers, body, me

@shrutiburman
shrutiburman / changes_b.md
Created June 26, 2023 17:15
When there's only changes in api-definitions and no changes in open-api. Current scenario

twilio-ruby changelog

[2023-06-26] Version 6.1.1

Library - Fix

Numbers

  • Added bulk Portability API under version /v1.
@shrutiburman
shrutiburman / changesa.md
Last active June 26, 2023 17:12
Descriptive Librarian output to generate changelog with api-definitions and open-api changelog merged for all apis

twilio-ruby changelog

[2023-06-26] Version 6.1.1

**Library - Fix

Api

  • Testing Changelog part 2 with right PR message
@shrutiburman
shrutiburman / api_v2010.yaml
Created April 4, 2023 09:06
address in api v2010 has dependents_key as a property which has all dependent details.
api.v2010.account.address:
type: object
properties:
account_sid:
type: string
minLength: 34
maxLength: 34
pattern: ^AC[0-9a-fA-F]{32}$
nullable: true
description: The SID of the [Account](https://www.twilio.com/docs/iam/api/account)
@shrutiburman
shrutiburman / assigned_add_on.rb
Created January 30, 2023 09:41
rest/api/v2010/account/call/payment.rb [preview] & /rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb [beta]
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Api
# This is the public Twilio REST API.
#
# NOTE: This class is auto generated by OpenAPI Generator.
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Api
# This is the public Twilio REST API.
#
# NOTE: This class is auto generated by OpenAPI Generator.
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Api
# This is the public Twilio REST API.
#
# NOTE: This class is auto generated by OpenAPI Generator.
@shrutiburman
shrutiburman / logs.sh
Created December 5, 2022 14:47
Testing gist which produces Domain files
/twilio
# cd /twilio/repos/ruby-oai/lib/twilio-ruby/rest
# ls -ltra
total 608
-rw-r--r-- 1 root root 1134 Dec 5 13:24 accounts.rb
drwxr-xr-x 3 root root 4096 Dec 5 13:24 accounts
-rw-r--r-- 1 root root 8678 Dec 5 13:24 api.rb
drwxr-xr-x 3 root root 4096 Dec 5 13:24 api
-rw-r--r-- 1 root root 1171 Dec 5 13:24 autopilot.rb
drwxr-xr-x 3 root root 4096 Dec 5 13:24 autopilot
@shrutiburman
shrutiburman / client.rb
Last active December 1, 2022 10:45
This gist skips GeneratingChangelog to get to the release step. Files: client.rb & log.sh gist
# cd /twilio/repos/ruby-oai/lib/twilio-ruby/rest
# cat client.rb
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# NOTE: This class is auto generated by OpenAPI Generator.
# https://openapi-generator.tech
@shrutiburman
shrutiburman / twilio-video-app-react_testingGist.txt
Created October 17, 2022 04:54
twilio-video-app-react testing with plugin-rtc update
➜ CLI git clone https://github.com/twilio/twilio-video-app-react.git
Cloning into 'twilio-video-app-react'...
remote: Enumerating objects: 8006, done.
remote: Counting objects: 100% (385/385), done.
remote: Compressing objects: 100% (157/157), done.
remote: Total 8006 (delta 241), reused 332 (delta 217), pack-reused 7621
Receiving objects: 100% (8006/8006), 37.14 MiB | 4.83 MiB/s, done.
Resolving deltas: 100% (5052/5052), done.
➜ CLI cd twilio-video-app-react
➜ twilio-video-app-react git:(master) npm install