forked from sugarcrm/rest-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed PHP 5.6 File Uploads - Added Endpoints
Needed some Endpoints that weren’t there, such as MassRelate and Update Related Updated documentation on SugarClient Added a check for PHP 5.5+, and CurlFile usage for File Uploads. Tested it via Updated UploadFile example
- Loading branch information
1 parent
c245cee
commit dd4b8e5
Showing
6 changed files
with
67 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* ©[2016] SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | ||
*/ | ||
|
||
namespace SugarAPI\SDK\Endpoint\POST; | ||
|
||
use SugarAPI\SDK\Endpoint\Abstracts\POST\AbstractPostEndpoint; | ||
|
||
class ModuleRecordLink extends AbstractPostEndpoint | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $_URL = '$module/$record/link'; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $_REQUIRED_DATA = array( | ||
'link_name' => NULL, | ||
'ids' => NULL | ||
); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* ©[2016] SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | ||
*/ | ||
|
||
namespace SugarAPI\SDK\Endpoint\PUT; | ||
|
||
use SugarAPI\SDK\Endpoint\Abstracts\PUT\AbstractPutEndpoint; | ||
|
||
class ModuleRecordLinkRecord extends AbstractPutEndpoint | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $_URL = '$module/$record/link/$relationship/$record'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters