Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
v1.1.0 release (#93)
Browse files Browse the repository at this point in the history
* documentation link added to readme

* Added disclosure

* Update sample-sendable-dataextension.php

* from Platform

* Development (#85)

v1.1.0 changes

* Development (#87)

* from platform

* overwrite

* namespace added in src

* namespace added under tests folder

* namespace  objsamples

* composer

* changelog

* change log

* change

* autoload without composer

* readme

* composer

* readme

* readme comment

* readme

* readme

* bounce

* docs

* composer

* Development (#88)

* from platform

* overwrite

* namespace added in src

* namespace added under tests folder

* namespace  objsamples

* composer

* changelog

* change log

* change

* autoload without composer

* readme

* composer

* readme

* readme comment

* readme

* readme

* bounce

* docs

* composer

* Development (#89)

dependency update

* V1.1.0 (#92)

* Development (#85) (#86)

v1.1.0 changes

* Development dependency (#91)

* from platform

* overwrite

* namespace added in src

* namespace added under tests folder

* namespace  objsamples

* composer

* changelog

* change log

* change

* autoload without composer

* readme

* composer

* readme

* readme comment

* readme

* readme

* bounce

* docs

* composer

* dependency update

* Config file path update

* Update README.md

* Update README.md
  • Loading branch information
smunuswami authored Oct 24, 2017
1 parent 5f4fe36 commit 5d3325d
Show file tree
Hide file tree
Showing 298 changed files with 52,621 additions and 4,576 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ config.php
/objsamples/AllTest.bat
.DS_Store
objsamples/sample-testing.php
/vendor
/vendor
/objsamples/sample-asset-TestFilePath.txt
/objsamples/sample-asset-upload.php
/tests/CampaignAssetTest.php
/tests/ImportListTest.php
8 changes: 8 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 1.1.0 (2017-10-19)
* namespace integration in all source, test and sample code
* composer autoload issue fix
* newly supported objects:
- Result Message
- Data Extract
- Triggered Send Summary

# 1.0.0 (2017-07-18)

### New Features
Expand Down
47 changes: 39 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@ FuelSDK-PHP

Salesforce Marketing Cloud Fuel SDK for PHP

> Salesforce Marketing Cloud Fuel SDK for PHP is free to use but are not official Salesforce Marketing Cloud products and should be considered community projects. This SDK is not officially tested or documented. For help on any Salesforce Marketing Cloud Fuel SDK for PHP, please consult the Salesforce message boards or the issues section of this repository. Salesforce Marketing Cloud support is not available for this SDK.
## Overview ##
The Fuel SDK for PHP provides easy access to Salesforce Marketic Cloud's Fuel API Family services, including a collection of REST and SOAP API. These APIs provide access to Salesforce Marketing Cloud (previously called ExactTarget) functionality via common collection types such as array/hash.

## New Features in Version 1.0.0 ##
## New Features in Version 1.1.0 ##

* **namespace :** namespace is introduced.

* **newly supported objects:**
- Result Message
- Data Extract
- Triggered Send Summary

* composer autoload issue fix


<!--
* **mcrypt :** mcrypt dependency removed.
mcrypt extension dependency prevented client application from upgrading to PHP 7.x. This release supports any PHP version > 5.6.24 and PHP 7.x
Expand Down Expand Up @@ -37,6 +50,8 @@ Project tree structure is now changed to:
* **API docs :** added API documentation using phpdocumentor framework. (under docs/ directory)
* **auto loader :** integrated auto loader (spl_autoload_register) for all source code under src/, tests/, objsamples/ directory.
-->


## Requirements ##
PHP Version >=5.6.24
Expand All @@ -46,21 +61,23 @@ Extensions:
- SOAP
- curl

## API Documentation ##

http://salesforce-marketingcloud.github.io/FuelSDK-PHP/index.html

## Installation ##

### Manual Installation
After downloading the project, rename the config.php.template file to config.php.
After downloading the project, rename the config.php.template file to config.php. Most importantly, you also need to download all dependencies manually and include accordingly. That's why we highly encourage to get it from composer.

### Composer
Add a dependency to composer require salesforce-mc/fuel-sdk-php and robrichards/xmlseclibs to the require section of your project's composer.json configuration file, and update your application.
Add a dependency to composer require salesforce-mc/fuel-sdk-php to the require section of your project's composer.json configuration file, and update your application.

The following code is an example of a minimal composer.json file:
<pre>
{
"require": {
"salesforce-mc/fuel-sdk-php": "1.0.0",
"robrichards/xmlseclibs": "3.0.0 as 2.0.1"
"salesforce-mc/fuel-sdk-php": "1.1.0"
}
}
</pre>
Expand All @@ -70,14 +87,24 @@ Edit config.php so you can input the ClientID and ClientSecret values provided w

See the ET_Client section below for details on how to specify these values at the time the ET_Client object is instantiated if you would prefer to store the ClientID and ClientSecret values in a database or other configuration storage mechanism.

If you have not registered your application or you need to lookup your Application Key or Application Signature values, please go to App Center at [Code@: ExactTarget's Developer Community](http://code.exacttarget.com/appcenter "Code@ App Center").
If you have not registered your application or you need to lookup your Application Key or Application Signature values, please go to Salesforce Marketing Cloud App Center.

## Example Request ##
All ExactTarget objects exposed through the Fuel SDK begin with be prefixed with "ET\_". Start by working with the ET_List object:
All ExactTarget objects exposed through the Fuel SDK begin with be prefixed with "ET\_". Start by working with the ET_List object:

Get the config.php.template file (under vendor/salesforce-mc/ using composer), rename it to config.php and update clientId & clientSecret.
Most importantly, put it in your project's root directory where composer.json file exists.

Add composer's auto generated autoload.php file, change the path according to your directory structure:
> require \_\_DIR\_\_ . '/../vendor/autoload.php';
Add use statement to reference the FuelSdk namespace:
> use FuelSdk\ET_Client;
> use FuelSdk\ET_List;
<!--
Add a require statement to reference the Fuel SDK's functionality:
> require('ET_Client.php');
-->
Next, create an instance of the ET_Client class:
> $myclient = new ET_Client();
Expand Down Expand Up @@ -174,11 +201,15 @@ Sample List:
- [ClickEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-clickevent.php)
- [ContentArea](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-contentarea.php)
- [DataExtension](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-dataextension.php)
- [DataExtractActivity](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-data-extract-activity.php)
- [Email](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-email.php)
- [Folder](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-folder.php)
- [List](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-list.php)
- [List > Subscriber](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-list.subscriber.php)
- [OpenEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-openevent.php)
- [ResultMessage](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-resultmessage.php)
- [SentEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-sentevent.php)
- [Subscriber](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-subscriber.php)
- [TriggeredSend](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-triggeredsend.php)
- [TriggeredSendSummary](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-triggeredsendsummary.php)
- [UnsubEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-unsubevent.php)
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"ext-openssl": "*",
"ext-soap": "*",
"php": ">=5.6.24",
"robrichards/wse-php":"2.0.1",
"robrichards/wse-php":"3.0.0 as 2.0.1",
"firebase/php-jwt":">=5.0.0"
},
"require-dev": {
Expand All @@ -29,7 +29,12 @@
],
"autoload": {
"psr-4": {
"\\" : "src/"
"FuelSdk\\" : "src/"
}
},
"autoload-dev": {
"psr-4": {
"FuelSdk\\Test\\": "tests/"
}
}
}
}
Loading

0 comments on commit 5d3325d

Please sign in to comment.