Download the PHP package jcsp/social-sdk without Composer
On this page you can find all versions of the php package jcsp/social-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package social-sdk
Jcsp Social Sdk
Jscp Social Sdk Component
Installation
Require this package, with composer, in the root directory of your project.
Please note that this library requires at least PHP 7.2 installed.
Usage
Init the Client Instance
Use the bellow codes to init the client instance.
Some functions need to provide access token data, so must pass the $accessToken
object.
Authorization
Generate Authorization Url
Get Access Token
Refresh Access Token
User
Get User Profile
Channel
Different platforms have different names for describing the area for sharing contents, like channel in Youtube, like page in Facebook, board in Pinterest, etc. For Convenient, here use the word channel to unity the name.
Get Channel List
Share
Can share to user
Can share to channel
Share Video
Simulate Share
Use the other way to share content.
Create Simulate Client
Get Account List
Get a list of the active accounts.
Make Simulate Video Post
To Make the simulate video post, in fact the simulate server would generate a task and return it. Save the task if which the method returned.
Handle Simulate Post Callback
After a simulate post finished, the simulate server would make post's type call the callback url which specified above, to notify the client server the result about post task.
Query A Task Info
It's hard to guarantee the callback handler always runs stably, so here provide a method to query task info manually.
Task Status
See the class \Jcsp\SocialSdk\ModelSimulatePostTask
LICENSE
The Component is open-sourced software licensed under the Apache license.
All versions of social-sdk with dependencies
ext-json Version *
ext-fileinfo Version *
ext-curl Version *
abraham/twitteroauth Version ^1.0
dirkgroenen/pinterest-api-php Version ^0.2.12
facebook/graph-sdk Version ^5.7
google/apiclient Version ^2.0
guzzlehttp/guzzle Version ^6.5
tumblr/tumblr Version ^0.4.0
vimeo/vimeo-api Version ^3.0
vkcom/vk-php-sdk Version ^5.101