Skip to content
Sample application using C# to send and receive Bandwidth text messages
C# Other
  1. C# 99.5%
  2. Other 0.5%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget
AcmeApp
.gitignore
AcmeApp.sln
CODE_OF_CONDUCT.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE
PULLREQUEST.md
PULL_REQUEST_TEMPLATE.md
README.md

README.md

csharp-messaging-reference-app

This application is outdated, but will be updated soon!

Install

Before run it fill config file (Web.config) with right values:

apiToken and apiSecret - auth data for MMP requests to create an user, an extension, etc,

partner, domain, context - values of MMP path where new user and its data will be created (account with given apiToken and apiSecret should have permissions to work with this partner, this domain and this context),

baseMmpUrl - base url for MMP requests, catapultUserId, catapultApiToken, catapultApiSecret - auth data for Catapult API (to search and reserve a phone number, etc)

Open solution file in Visual Studio and build it.

You can run compiled C# code with IIS Express on local machine if you have ability to handle external requests or use any external hosting.

Deploy on Azure

Open solution in Visual Studio. Click right button on this project in solution explorer and select "Publish". Select "Microsoft Azure Websites" in opened dialog, then sign in on Azure and select exisitng website to deploy this project or create new (button "New"). If you create new site enter site name, select subscription and region. Database is not required. Change site profile options if need and press "Publish" to upload it on Azure. Now you can open it in the browser.

Http routes

GET / with redirect to /users
GET /users with HTML response (user's ui)
POST /users {"userName": "" }  with response  {"userName": "", "phoneNumber": "", "uuid": "", "tokens": [{"token": "", "secret": "", "createdAt": ""}]}  to register an user
You can’t perform that action at this time.