How to send sms using https url from 3rd party sms provider - c#

[I used this link] (https://ozeki-sms-gateway.com/p_677-how-to-send-sms-from-c-sharp-using-http-get.html)
This code did not work.
The link given from the company had senderID, which is not exist the given oziki url.

The same code works fine.
The server shows a sending request for the sms http correctly.

Related

Where should I configure webhook url to get the latest user send message from bot added telegram group

I have read some documents to understand the webhook configuration for getting the latest user send messages from bot added telegram group the documents and the links are this , this, this , telegram api doc and telegram bot doc
I understand the concept but I'm getting the confusion on configuration of webhook url to get the latest messages and where should I configure this webhook url.
Note :- Should configure this webhook url in our server(www.example.com)?
Example webhook url is :
https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}
Suggest me how to work with telegram webhook. And get the latest user send messages.
You need to set Webhook on your own static web address, for instance:
https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/setWebhook?url=https://www.example.com
There should be POST-handler on this route, that way Telegram's updates can be received.
You must set your webhook manually.
You've got a bot_token and you know which url will receive the POST updates webhook_url
You run this link in your browser with your configuration:
https://api.telegram.org/bot{bot_token}/setWebhook?url={webhook_url}
After that any update will be send to your webhook url as a JSON
If you got an error 429: Too Many Requests, you must handle this in your code.
It comes because you are sending to many requests to the Bot API, and every bot has a limit 30 request/second.
So try to minimize requests as much as possible in your code and do some Thead.Wait() if needed

Receiving SMS in C# with RingCentral

I am able to send SMS using C#. But my problem is I don't know to receive those SMS.
I looked into following documentation with WebHook and C# here:
https://developers.ringcentral.com/guide/notifications/quick-start/webhook/c-sharp
But not sure how to do it exactly.
Can I get any help to know how I can receive the SMS. Any sample will be great.
There are 3 ways to receive SMS:
PubNub Subscription
WebHook Subscription
API Request
Here are some details:
Using PubNub, you can receive SMS.
Check it out here: https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/SubscripotionTest.cs#L31
Since this is used by PubNub, so you don't need ngrok
If you want WebHook, you need to subscribe for push notification check the reference demo: https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/WebHookTest.cs
The direct API of RingCentral APIs to receive SMS content in your C#, by calling this API inside your SDK is: /restapi/v1.0/account/~/extension/~/message-store/{messageId}/content/{attachmentId}. Here you need to put the message id and the attachment id to retrieve message content from message-store
Hope this help.

How to send a certificate as part of request using api management

[![enter image description here][1]][1]Currently I'm reading a client certificate from the external client and then validating in apim using policies which is done using
<policies>
<inbound>
Now when the request is valid and must attach the servercertificate along with the request and then send it back to the client.
How must this be done? can you please help.
Since you're putting certificate into a header you could simply bin64 encode it. You should be able to do it either by accessing RawData property or calling Export on it.

Twilio SMS sandbox using C#

How do you use the Twilio sandbox mode with C#? I have a ashx.cs file that I am using to write my code. Would I put it there? If so, what does that look like?
There is no real great examples on their website on how to do this except for CURL and Ruby.
We are using TwiML to general an XML file tha t parses our data to send back and forth to the Twilio service. We don't want to be charged every time we send a test text message.
How would we set the Sandbox up so we could do some testing.
I found the Test auth Token and account Sid, but how do I use those?
We don't have them in our current application and we are specifying our .ashx page in Twilio to process our code.
Thanks in advance.
Twilio evangelist here.
So if you just want to test that your ASHX handler is generating the right results the easiest way to do this is to just fake a POST or a GET request to that handler. This lets you simulate the GET or POST request that Twilio will make to your app when it gets a text message.
You can see the parameters that Twilio will pass to your app when it receives a text message here:
http://www.twilio.com/docs/api/twiml/sms/twilio_request#synchronous
There are a whole bunch of ways to simulate these requests. cURL is one of them. If your ASHX is expecting query string values, you can also just load the ASHX directly in the browser and append those values in the URL. If the handler is expecting a POST request, I used a chrome plugin called Simple REST Client to make these.
Of course you can also Fiddler to make just about any HTTP request.
The Test Credentials really are more for simulating the use of the REST API (programatically sending SMS messages). I just wrote a blog post that shows how to use the test credentials to create integration tests:
http://www.twilio.com/blog/2013/05/automating-twilio-integration-tests-with-test-credentials.html
Hope that helps.
Devin

Https Communication to Java Server with Dotnet Client

I need to send financial messages(transactions) to a bank with the help of HTTPS communication. Bank server is written on Java while my application is in .Net.
Following are only details I received from their side:
Https request:
• The entire ISO request for https should be sent as an attachment to the following
servlet:
https:///Servlet/IBSOtherVendorRequestServlet
What are other components or documents required from their side and which namespace of .Net can I use for this communication?
Kindly help me on how to proceed.
You have to know how to query the servlet : SOAP ? REST ? what are the parameters and which method should be used ? result in plain text, XML or JSON ?
It looks like you have to POST a request to this Servlet. You have to know what is an "entire ISO request" then POST it to this url using HttpClient or HttpWebRequest. It will probably look like this : Upload files with HTTPWebrequest (multipart/form-data)

Categories

Resources