Module: Telnyx::APIOperations::Create
- Included in:
- Telnyx::AccessIPAddress, Telnyx::AccessIPRange, Telnyx::Address, Telnyx::AlphanumericSenderId, Telnyx::AuthenticationProviders, BatchMdrReport, BillingGroup, Brand, BulkCreation, Call, CallControlApplication, CallRecording, Campaign, Comment, Conference, CredentialConnection, CsvDownload, DialogflowConnection, Documents, DynamicEmergencyEndpoint, Embedding, FQDN, FQDNConnection, Fax, FaxApplication, GlobalIp, GlobalIpAssignment, IP, IPConnection, Inference, InventoryCoverage, LedgerBillingGroupReport, ListObject, ManagedAccount, MdrUsageReport, Media, Message, MessageNumberPool, MessagingHostedNumberOrder, MessagingProfile, MessagingTollfreeVerification, MobilePushCredential, Network, NotificationChannel, NotificationProfile, NotificationSetting, NumberBlockOrder, NumberOrder, NumberOrderDocument, NumberReservation, OutboundVoiceProfile, PartnerCampaign, PhoneNumberAssignmentByProfile, PhoneNumberCampaign, PortabilityCheck, PortingOrder, Portout, PrivateWirelessGateway, PublicInternetGateway, Room, RoomComposition, RoomSession, SimCardAction, SimCardDataUsageNotification, SimCardGroup, SimCardOrder, Summary, TelephonyCredential, TexmlApplication, Verification, VerifyProfile, VirtualCrossConnect, WireguardInterface, WireguardPeer, WirelessDetailRecordsReport
- Defined in:
- lib/telnyx/api_operations/create.rb
Instance Method Summary collapse
Instance Method Details
#create(params = {}, opts = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/telnyx/api_operations/create.rb', line 6 def create(params = {}, opts = {}) if opts.respond_to? :fetch url = opts.fetch(:resource_url, nil) opts.delete :resource_url end url ||= resource_url resp, opts = request(:post, url, params, opts) Util.convert_to_telnyx_object(resp.data, opts) end |