Giter Site home page Giter Site logo

salesforcesdk's Introduction

SalesforceSDK

Build native apps around your Salesforce data.

Give your users the mobile experience they expect, and increasingly demand, from their enterprise apps. Take full advantage of the raw performance and rich functionality native to each platform. Meet compliance requirements by leveraging each platform's trusted-computing features, like OS-managed credential stores.

Do it all using C#.

Key Highlights

  • Create, Update, and Delete SObjects.
  • Run queries written in SOQL.
  • Full-text searching via SOSL.
  • Retrieve SObject change notifications (added in v29 of the REST API).
  • Use the same C# API for iOS and Android.
  • Leverage async/await for keeping your UI responsive, and your code simple.
  • Simple, compact, progressive API.
  • Easily create your own strongly-typed domain model classes.

Dive In

// Creates our connection to salesforce.
var client = new SalesforceClient (clientId, clientSecret, redirectUrl);

// Get authenticated users from the local keystore
var users = client.LoadUsers ();

if (!users.Any ())
{
        client.AuthenticationComplete += (sender, e) => OnAuthenticationCompleted (e);

        // Starts the Salesforce login process.
        var loginUI = client.GetLoginInterface (); 
        DisplayThe(loginUI);
} 
else 
{
        // We're ready to fetch some data!
        // Let's grab some sales accounts to display.
        IEnumerable<SObject> results =  await client.ReadAsync ("SELECT Name, AccountNumber FROM Account");

        DoSomethingAmazingWith(results);
}

For more details, see Getting Started.

Are you a Xamarin user? Get the component instead.

Project Organization

Core Libraries

  • Salesforce.Core - Plain old .NET 4.5 library. No dependencies on Xamarin stuffs.
  • Salesforce.Android - Xamarin.Android project. Source linked from Core, but defines PLATFORM_ANDROID and MOBILE. Includes platform-specific IPlatformAdapter implementation, AndroidPlatformAdapter.
  • Salesforce.iOS - Xamarin.iOS project. Source linked from Core, but defines PLATFORM_IOS and MOBILE. Includes platform-specific IPlatformAdapter implementation, UIKitPlatformAdapter.

Sample Apps

  • SalesforceSample.Android - Xamarin.Android sample app using Salesforce.Android.
  • SalesforceSample.iOS - Xamarin.iOS sample app using Salesforce.iOS.

Tests

  • Tests.Android - Xamarin.Android unit test project (NUnit Lite).
  • Tests.iOS - Xamarin.iOS unit test project (NUnit Lite).

Distribution

  • Package - Source files for building the distribution packages.

Misc

  • Documentation - Incorrectly named folder of artwork files, SFDC reference material, and notes.
  • Xamarin.Auth - Custom fork of Xamarin.Auth used to implement the SFDC OAuth2 workflow.

Release Notes

1.4.x
Additions

  • Added Changes and ChangesAsync for easy retrieval of object change info, which was introduced in v29 of the API.

  • Supports "logout" scenario by calling Client.CurrentUser.RequiresReauthentication = true;.

Brings assembly version up to 0.9.5092.212xx.

1.3
Additions

  • Added Describe and DescribeAsync for easy retrieval of object metadata.

Enhancements

  • PlatformStrings.CredentialStoreServiceName is now configurable.

Breaking Changes

  • Search and SearchAsync now return IEnumerable<SearchResult>.
  • PlatformStrings.Salesforce was renamed to PlatformStrings.CredentialStoreServiceName.

Brings assembly version up to 0.9.5003.24683.

1.2
Enhancements

  • Allows Update of non-string datatypes, such as DateTime.
  • Updated the iOS sample to demonstrate mapping the REST API's datetime to System.DateTime.

Additions

  • Now throwing two new exceptions: InvalidClientIdException and JsonParseException.

Brings the assembly version up to 0.9.4987.26579.

1.1
Additions

  • Added Search and SearchAsync for easy SOSL queries.

Breaking Changes

  • Renamed SOQL overloads of Read and ReadAsync to Query and QueryAsync.
  • Renamed extension method parameter @object to sobject to make it easier to use named-parameter syntax.

Brings assembly version up to 0.9.4975.19187.

License

The first public release of the SalesforceSDK is being released under the terms of the MIT license (despite the fact that the history in GIT contains a template for Apache License 2, that was unreleased until now).

salesforcesdk's People

Contributors

zgramana avatar moljac avatar jassmith avatar conceptdev avatar bholmes avatar migueldeicaza avatar bojanrajkovic avatar marktap avatar joshbirk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.