For example, it is now possible to programmatically create a strongly typed Rust philippines whatsapp number library for Twilio's API methods. JavaScript Copy the code use dotenv; use std::env; use openapi::apis::{configuration::Configuration, default_api as twilio_api}; #[tokio::main] async fn main() { dotenv::dotenv().expect("Failed to read .env file"); let account_sid = env::var("TWILIO_ACCOUNT_SID").expect("Failed to parse Account SID"); let api_key = env::var("TWILIO_API_KEY").expect("Failed to parse API Key"); let api_key_secret = env::var("TWILIO_API_KEY_SECRET").expect("Failed to parse API Key Secret"); let mut twilio_config = Configuration::default(); // Supply Basic Auth credentials. twilio_config.basic_auth = Some((api_key, Some(api_key_secret))); let balance = twilio_api::fetch_balance(&twilio_config, &account_sid) .await .unwrap(); println!("{:?}", balance); } To learn more about library generation, check out our OpenAPI Generator project on GitHub or the Library Generation docs .

Test simulation With the OpenAPI specification, you can now mock Twilio's API to emulate real API calls locally, making test suite integration with Twilio faster and more seamless. For example, you can now easily create a server simulation of Twilio's portable API with Docker . Bash Copy the code docker run --init -d -p 4010:4010 stoplight/prism:4 mock -h 0.0.0.0 twilio/twilio-oai/main/spec/json/twilio_api_v2010.json To learn more about test simulations, check out our documentation . Compatibility with Postman We've also added support for Postman , a free and easy developer tool for making API calls with a variety of useful features.