2017 © Pedro Peláez
 

library salesforce-api

A library for interacting with the Salesforce REST API and managing the OAuth flow

image

akeneo-salesforce/salesforce-api

A library for interacting with the Salesforce REST API and managing the OAuth flow

  • Friday, December 15, 2017
  • by LeoBenoist
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1,667 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 17 Forks
  • 0 Open issues
  • 17 Versions
  • 1 % Grown

The README.md

SalesForce Library

Warning : Work in progess, (*1)

Aim

Call The SalesForce API (v37.0 at this time) in order to call API functionnalities easily. The main advantage is that you don't have to be preoccuped by the token, the library maintains it. Also, you are authentificated correctly to make a CLI application., (*2)

Install

$ composer require akeneo-salesforce/salesforce-api, (*3)

Documentation

Usage

The client
$client = new Akeneo\SalesForce\Connector\SalesForceClient(
    $myUsername,
    $myPassword,
    $myClientId,
    $myClientSecret,
    $myLoginUrl,
    new GuzzleHttp\Client(),
    new Akeneo\SalesForce\Authentification\AccessTokenGenerator()
);

Usage in Symfony

This bundle can be easily integrated to a Symfony2 project, you just have to declare two services:, (*4)

First declare your parameters in your parameters.yml * sales_force.username * sales_force.password * sales_force.client_id * sales_force.client_secret * sales_force.login_url (For example: 'https://login.salesforce.com/'), (*5)

services:
    akeneo_sales_force.authentification.token_generator:
        class: Akeneo\SalesForce\Authentification\AccessTokenGenerator

    akeneo_sales_force.connector.client:
        class: Akeneo\SalesForce\Connector\SalesForceClient
        arguments:
            - "%sales_force.username%"
            - "%sales_force.password%"
            - "%sales_force.client_id%"
            - "%sales_force.client_secret%"
            - "%sales_force.login_url%"
            - "@guzzle.client"
            - "@akeneo_sales_force.authentification.token_generator"

And then use your client service like any other service., (*6)

Make a query

A QueryBuilder is given to make SOQL query., (*7)

See available functionnalities into the class itself., (*8)

Example, (*9)

$queryBuilder = new Akeneo\SalesForce\Query\QueryBuilder();

$queryBuilder
            ->select('Id')
            ->from('Account')
            ->where($queryBuilder->getNotEqualCondition('Name', ':nameId'))
            ->setParameter('nameId', 'AccountPlop')
        ;

$client->search($queryBuilder->getQuery());

Next

More

This library is made with <3 by Akeneo, (*10)

Do not hesitate to contribute., (*11)

Maintained by Anaël CHARDAN., (*12)

The Versions

15/12 2017

dev-master

9999999-dev

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

15/12 2017

2.0.7

2.0.7.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

24/11 2017

2.0.6

2.0.6.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

22/11 2017

2.0.5

2.0.5.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

15/09 2017

2.0.4

2.0.4.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

15/09 2017

2.04

2.04.0.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

20/04 2017

2.0.3

2.0.3.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

09/02 2017

2.0.2

2.0.2.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

08/02 2017

2.0.1

2.0.1.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

05/07 2016

2.0.0

2.0.0.0

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

by Arthur Guy
by Anael CHARDAN

api rest oauth2 salesforce

15/07 2015

1.1.2

1.1.2.0 https://github.com/crunch-accounting/salesforce-api-php-wrapper

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Guy

api rest oauth2 salesforce

25/06 2015

1.1.1

1.1.1.0 https://github.com/crunch-accounting/salesforce-api-php-wrapper

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Guy

api rest oauth2 salesforce

19/06 2015

1.1.0

1.1.0.0 https://github.com/crunch-accounting/salesforce-api-php-wrapper

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Guy

api rest oauth2 salesforce

18/06 2015

1.0.3

1.0.3.0 https://github.com/crunch-accounting/salesforce-api-php-wrapper

A library for interacting with the Salesforce REST API and managing the OAuth flow

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Guy

api rest oauth2 salesforce

11/06 2015

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Guy

11/06 2015

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Guy

11/06 2015

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Guy