[ 
https://issues.apache.org/jira/browse/CAMEL-10471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15656634#comment-15656634
 ] 

ASF GitHub Bot commented on CAMEL-10471:
----------------------------------------

GitHub user zregvart opened a pull request:

    https://github.com/apache/camel/pull/1264

    CAMEL-10471 Update Salesforce component to support limits REST API

    Adds support for the Organization Limits Salesforce API[1].
    
    New operation `limit` was added and can be used like:
    
        ...to("salesforce:limit")
            .choice()
              .when(
                 simple("${body.dailyApiRequests.remaining} > 0")
              )...
            .endChoice();
    
    Supports all usage limits currently returned with v38.0 Salesforce API.
    Adding of new usage limits is performed by adding enum constant to
    Limits.Operation and corresponding getter to Limits class.
    
    [1] 
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_limits.htm

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zregvart/camel CAMEL-8396-limits

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1264.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1264
    
----
commit ec7504ee94fa3c88ddcc7af958461cd2705ef953
Author: Zoran Regvart <[email protected]>
Date:   2016-11-10T16:57:11Z

    CAMEL-8396 Update Salesforce component to support new REST APIs in 
Salesforce API V33.0
    
    This commit adds support for the Organization Limits Salesforce API[1].
    
    New operation `limit` was added and can be used like:
    
        ...to("salesforce:limit")
            .choice()
              .when(
                 simple("${body.dailyApiRequests.remaining} > 0")
              )...
            .endChoice();
    
    Supports all usage limits currently returned with v38.0 Salesforce API.
    Adding of new usage limits is performed by adding enum constant to
    Limits.Operation and corresponding getter to Limits class.
    
    [1] 
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_limits.htm

----


> Update Salesforce component to support limits REST API
> ------------------------------------------------------
>
>                 Key: CAMEL-10471
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10471
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-salesforce
>    Affects Versions: 2.18.1
>         Environment: Any
>            Reporter: Zoran Regvart
>              Labels: feature, features
>
> Part of CAMEL-8396 to add support for the [Organization Limits Salesforce 
> API|https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_limits.htm].
> Add operation `limit` that can be used like:
> {code:java}
> ...to("salesforce:limit")
>     .choice()
>       .when(
>          simple("${body.dailyApiRequests.remaining} > 0")
>       )...
>     .endChoice();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to