Salesforce ExactTarget FuelSDK Extensions

Extensions for com.exacttarget.fuelsdk (c) 2016 Sport Trades Ltd

License

License

GroupId

GroupId

com.buabook
ArtifactId

ArtifactId

sf-et-fuel-sdk
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Salesforce ExactTarget FuelSDK Extensions
Extensions for com.exacttarget.fuelsdk (c) 2016 Sport Trades Ltd
Project URL

Project URL

http://buabook.github.io
Source Code Management

Source Code Management

https://github.com/BuaBook/sf-et-fuel-sdk.git

Download sf-et-fuel-sdk

How to add to project

<!-- https://jarcasting.com/artifacts/com.buabook/sf-et-fuel-sdk/ -->
<dependency>
    <groupId>com.buabook</groupId>
    <artifactId>sf-et-fuel-sdk</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.buabook/sf-et-fuel-sdk/
implementation 'com.buabook:sf-et-fuel-sdk:1.0.1'
// https://jarcasting.com/artifacts/com.buabook/sf-et-fuel-sdk/
implementation ("com.buabook:sf-et-fuel-sdk:1.0.1")
'com.buabook:sf-et-fuel-sdk:jar:1.0.1'
<dependency org="com.buabook" name="sf-et-fuel-sdk" rev="1.0.1">
  <artifact name="sf-et-fuel-sdk" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.buabook', module='sf-et-fuel-sdk', version='1.0.1')
)
libraryDependencies += "com.buabook" % "sf-et-fuel-sdk" % "1.0.1"
[com.buabook/sf-et-fuel-sdk "1.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.exacttarget : fuelsdk jar 1.1.0
joda-time : joda-time jar 2.9.6

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 1.10.19
org.hamcrest : java-hamcrest jar 2.0.0.0

Project Modules

There are no modules declared in this project.

Extensions / Helpers for Java FuelSDK

This repository has some classes that we've found useful when developing against the ExactTarget API.

You can download the library here. JavaDoc can be found on BuaBook.github.io.

To-do:

  • Release to Maven Central

Included Classes

AutoRefreshETClient

We've found that the default ETClient class does not support refreshing of the OAuth refresh token. This token is defined by the OAuth standard to expire after 14 days after which point all API requests will fail.

This class extends ETClient and provides automatic refreshing of the refresh token after a duration which can be configured by the caller (there is a default of refreshing every 24 hours if none is provided). The rest of the class behaves identically to ETClient.

Use the static method AutoRefreshETClient.newRefreshClient to get a new object.

ExactTargetInterface

This class provides some interface methods to retrieving / sending data via the ExactTarget API.

Available methods:

  • getDataExtension: Retrieves a data extension by using the name as appears on the ExactTarget web UI
com.buabook

BuaBook

Versions

Version
1.0.1
1.0.0