twilio-csharp | NET Framework 3.5+ and supported .NET Core versions | SMS library
kandi X-RAY | twilio-csharp Summary
kandi X-RAY | twilio-csharp Summary
Twilio C#/.NET Helper Library for .NET Framework 3.5+ and supported .NET Core versions
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of twilio-csharp
twilio-csharp Key Features
twilio-csharp Examples and Code Snippets
Community Discussions
Trending Discussions on twilio-csharp
QUESTION
When I get a price back when I call a Fetch to get a status of a message, it has Price and Segments.
I'm wondering if that includes Carrier fees as well? I don't know how common carrier fees are but say the normal pricing for 1 segments is 0.0075, could I see another message that is 1 segment and has 0.01 price?
I'm guessing I would see it on this return otherwise we could just use segments for pricing.
I'm using c# Twilio.Rest.Api.V2010.Account.MessageResource
...ANSWER
Answered 2019-Jun-12 at 15:04From Twilio support ticket I got:
"The carrier fees are already included in the price that you see in the messages you send, so for example, if you were to retrieve your messages using the Message Resource API, that carrier fee would be included in the price listed for each message. "
QUESTION
Trying to find (detailed) documentation for the MessageResource
class; specifically what the values of the property ErrorCode
mean. All I can find is this page, but that gives only the most cursory info.
ANSWER
Answered 2019-May-09 at 14:07QUESTION
I can't seem to find documentation on this. If I pass forceDelivery when constructing a message, how will the API behave differently compared to not passing it?
The only documentation I see is
...ANSWER
Answered 2018-Nov-16 at 03:24No kidding ... there is seriously no documentation on this. After a good bit of digging though, I found that Raj Rajamani, when he was Director of Product Management at Marketo, committed TwilioUtility.java to his Marketo repository, in which there are these lines of code:
QUESTION
While installing the next-gen version of twilio-csharp in Visual Studio 2013 (used Install-Package with the -Pre switch), but the below error happened.
...ANSWER
Answered 2017-Dec-03 at 17:08Thanks Megan for your comment... I downloaded the stable version and it worked fine. Also, later on I upgraded to the async version of the api's and that worked like a charm too.
QUESTION
I am trying to pull some statistics for a TaskQueue using the TaskRouter.js SDK. For this I need to generate a capability router token, which allows access to the TaskQueue. According to the sample at twilio docs, I am supposed to pass null as the channel parameter(look in C# .Net sample), to generate the TaskRouterCapability token. But when I do this, I get an exception (object is null in get_Claims).
Looking at the source code, I should pass in the TaskQueue Sid as the channel id instead of null. When I did this a token was correctly generated.
To start off, am using the basic token generation example code at twilio docs :
...ANSWER
Answered 2017-Oct-18 at 22:41Turns out there are 2 errors in the sample:
The channel parameter of TaskRouterCapability constructor should be passed the TaskQueue Sid rather than null. A value of null causes an Exception System.NullReferenceException occurred HResult=0x80004003 Message=Object reference not set to an instance of an object. Source= StackTrace: at Twilio.Jwt.Taskrouter.TaskRouterCapability.get_Claims() at Twilio.Jwt.BaseJwt.ToJwt()
There is a typo in the TaskQueue property of PolicyUrlUtils. The URL should have TaskQueues instead of TaskQueue
Have submitted a pull request for the same https://github.com/TwilioDevEd/api-snippets/pull/539
QUESTION
In the 4.x API, the MessageListRequest interface had a comparison type, ex DateSentComparison = ComparisonType.GreaterThanOrEqualTo. The 5.0 API, MessageResource.Read has dateSentAfter is this inclusive or exclusive?
The documentation doesn't mention this: https://twilio.github.io/twilio-csharp/5.0.0/class_twilio_1_1_rest_1_1_api_1_1_v2010_1_1_account_1_1_read_message_options.html#aae0de4a5d26814fc646b96b577171d23
...ANSWER
Answered 2017-Mar-10 at 16:21Twilio developer evangelist here.
dateSetAfter
here refers to using >=
in the list filter for the messages resource. It is an inclusive filter. It is the same as the old GreaterThanOrEqualTo
that you had in the v4 API because the API it refers to hasn't changed.
QUESTION
As a Twilio newbee coding in C# I am confused by the range of .Net helper libraries authored by Twilio Inc, my confusion is further compounded by online tutorials that show different helper API usage to solve a common problem.
My hunch is that after an extended Release Candidate phase the Twilio-csharp package on Nuget dated 14th February 2017 and described as 5.0.0-rca4, is the version to base my new development on. I think this corresponds to the twilio-csharp Next-Gen-2 branch on GitHub.
My development requirement is modest:
- Raise an outbound voice call in an Azure Function().
- Capture the call connect event in an Azure WebApi controller and reply with a say & gather XML instruction.
- Log the DTFM digits entered in a database hosted on azure via another WebApi entry point.
ANSWER
Answered 2017-Feb-23 at 21:09Twilio evangelist here.
My suggestion is to use the (now GA'ed) version 5 package as it contains API changes compared to the older packages and also introduces .NET Standard 1.4 compatibility.
Hope that helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install twilio-csharp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page