paravibe/salesforce-wrapper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

paravibe/salesforce-wrapper

最新稳定版本:1.1.6

Composer 安装命令:

composer require paravibe/salesforce-wrapper

包简介

Salesforce API wrapper for PHP

README 文档

README

Total Downloads

Installation

composer require paravibe/salesforce-wrapper

How to use

Initialize client

$client = new \Salesforce\Client($accessToken, $instanceUrl, $api);

Where $accessToken is a token retrived during authorization procedure - https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_authentication.htm
$instanceUrl is a string that was returned during authorization procedure
$api is an API version to use. E.g. v46.0

Then you can use any method Salesforce supports by passing it into createRequest:

GET/DELETE methods

$request = $client->createRequest('GET', 'sobjects');
$response = $request->execute()->getDecodedBody();

POST/PATCH methods

$request = $client->createRequest('POST', 'sobjects/SOME_OBJECT');
$request->attachBody(array('field' => 'value'));
$response = $request->execute()->getDecodedBody();

统计信息

  • 总下载量: 9.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-10