Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a requirement to create list item in a sharepoint online list using the REST API and c#. How to achieve this. Most of the article show using REST API in jquery and Javascript but I have a requirement to do this using c#. Please suggest if anyone have one with this problem.

Unfortunately, I am not getting any code sample for that.

Any kind of help will be appreciated. Thanks

share|improve this question
    
What kind of Visual Studio project are you building? –  Rob Windsor Dec 13 '13 at 18:14
add comment

2 Answers

up vote 2 down vote accepted

Check out this MSDN article which help you lot

http://code.msdn.microsoft.com/SharePoint-2013-Perform-335d925b

share|improve this answer
    
Please do not only provide links as answers, if the link breaks, your answer will be of little help to readers. Try to add the important bits from the link to you post –  Robert Lindgren Dec 15 '13 at 11:16
    
The link was really helpful. –  Sushri Dec 16 '13 at 14:24
    
If it was really helpful than plz mark it as answer –  Milind Dec 16 '13 at 14:39
add comment

If you know how to do it using REST/Js/jQuery, one of the possible way could be create the request with the help of Fiddler and pass that over to SP using WebRequest using C# application.

share|improve this answer
    
Yes, this is correct. The REST API will be consistent among platforms and languages. I think you just need to learn how to invoke ANY REST API via c# and then you will be on your way. Look for any C# REST tutorial and you should be good. –  tyshock Dec 13 '13 at 15:42
    
thanks for you help. I will be working on it. –  Sushri Dec 16 '13 at 14:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.