Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a c# wrapper available for the Salesforce REST Api?

I would like to integrate SalesForce information into a .net MVC application.

The samples on SalesForce website are all SOAP as far as I can see, or alternatively there is a SalesForce ADO.NET data provider.

http://wiki.developerforce.com/page/Web_Services_API#.NET

Thanks.

like image 407
GC. Avatar asked Feb 29 '12 10:02

GC.


People also ask

Do we say AC or AC?

Air-conditioning, when used as a noun, is hyphenated. The house has air-conditioning. Air conditioner, a noun, is open. The air conditioner is on the fritz.

Do Russians have AC?

Air conditioners became a necessity, especially in southern Russia and in big cities.

What is AC AC?

Air conditioning, often abbreviated as A/C or AC, is the process of removing heat from an enclosed space to achieve a more comfortable interior environment (sometimes referred to as 'comfort cooling') and in some cases also strictly controlling the humidity of internal air.

Why is there a slash in AC?

Why is there a slash between A and C in A/C? AC is used as an abbreviation for alternating current and A/C for air conditioning. For most people AC is used for alternating current because it was the first use of this abbreviation and A/C is used for air conditioning to differentiate from alternating current.


2 Answers

A .NET tool kit was announced by salesforce.

"The Force.com Toolkit for .NET provides an easy way for .NET developers to interact with the Force.com REST API using a native libraries."

https://github.com/developerforce/Force.com-Toolkit-for-NET/

like image 53
Jason Rowe Avatar answered Sep 20 '22 19:09

Jason Rowe


If you're looking for a Salesforce's REST API client library, take a look on SalesforceSharp.

It supports create, update, delete and query records from REST API.

Create

client.Create("Account", 
   new { Name = "name created", Description = "description created" }));

Update

client.Update("Account", "<record id>", 
   new { Description = "description updated" }));

Delete

client.Delete("Account", "<ID">);

Query

var records = client.Query<Account>("SELECT id, name, description FROM Account");

Nowadays it supports username-password authentication flow, but others flows (web server and user-agent) can be created and injected.

like image 25
giacomelli Avatar answered Sep 21 '22 19:09

giacomelli