1

I am creating a Xamarin Android application and I want to use DocumentDB, but unfortunately it's impossible to use Microsoft.Azure.DocumentDB NuGet package, and it seems the only way is to use REST.

How can I use REST for receiving, updating, adding data to DocumentDB with C#?

2
  • Can you post any code you have so far? Commented May 27, 2016 at 22:44
  • Grab your favorite REST client library and hit the docs. The thing most folks find the most tricky is getting the authentication base64 encoding correct but there are a few good SO answers on that. Commented May 27, 2016 at 22:45

1 Answer 1

1

There is a giant knowledge base about this. You should read it:

https://msdn.microsoft.com/en-us/library/azure/dn781481.aspx

They are also referencing a Github repository that contains examples on how to interact with that REST interface. It's really easy. Just start out by copying chunks of the code and adjust them to your needs:

https://github.com/Azure/azure-documentdb-dotnet/tree/master/samples/rest-from-.net

The code is well commented and explains all the steps in detail.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.