定制 linkedin-laravel/linkedin-update 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

linkedin-laravel/linkedin-update

Composer 安装命令:

composer require linkedin-laravel/linkedin-update

包简介

This package allows you to easily share content on Likedin, using the v2 API.

README 文档

README

This package allows you to share content in Linkedin with the v2 API

Installation on Laravel

You can install this package via composer:

composer require lightit/linkedin-share

In Laravel 5.5 the service provider will automatically get registered. In older versions of the Laravel you should add the service provider to the config/app.php file:

'providers' => [
    // ...
    Lightit\LinkedinShare\LinkedinShareServiceProvider::class,
];

You can publish the config file with:

php artisan vendor:publish --provider="Lightit\LinkedinShare\LinkedinShareServiceProvider" --tag="linkedin-share"

After publishing the config file, you should declare the following variables in your .env file.

LINKEDIN_SHARE_REDIRECT_URI={your_redirect_uri}
LINKEDIN_SHARE_CLIENT_ID={your_client_id}
LINKEDIN_SHARE_CLIENT_SECRET={your_client_secret}

Sharing content

You will need the user authentication code ($code) to be able to share content in behalf of the user, you will probabily get this code from the fornt-end of your application.

Sharing text

LinkedinShare::shareNone($code, $text);

Sharing images

LinkedinShare::shareImage($code, $image, $text);

Sharing links

LinkedinShare::shareArticle($code, $url, $text);

Sharing content with access_token

If you prefere to share content using the user access_token, you should include an optional parameter to the share functions. Example:

LinkedinShare::shareNone($access_token, $text, 'access_token');

Extra functionality

Getting access token from authentication code

LinkedinShare::getAccessToken($code)

About Lightit

Light-it is a software development company with offices in Uruguay and Paraguay.

alt text

License

This project and the Laravel framework are open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固