masuipeo/tweet 问题修复 & 功能扩展

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

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

masuipeo/tweet

Composer 安装命令:

composer require masuipeo/tweet

包简介

Simple Twitter Client. This package can only tweet string.

README 文档

README

This package can tweet string only.

Usage

  1. Get Twitter key and tokens.

To use Twitter API, you must get Twitter key and tokens.

https://apps.twitter.com/

If you want, you can use the below sample for "Describe in your own words what you are building". But I do NOT guarantee if your application does not pass.

This package need the following keys and tokens.

  • Consumer API keys
    • API key
    • API secret key
  • Access token & access token secret
    • Access token
    • Access token secret
  1. Get Composer package.
$ composer require masuipeo/tweet
  1. Make a PHP script.

To fill key and tweet contents in below file. And save this file as tweet.php.

<?php

require 'vendor/autoload.php';

use Masuipeo\Tweet\Tweet;

$keys = [
    "consumer_key" => "xxxxxxxxxx",
    "consumer_secret" => "xxxxxxxxxx",
    "access_token" => "xxxxxxxxxx",
    "access_token_secret" => "xxxxxxxxxx"
];

$twitter = new Tweet($keys);
if ($twitter->tweet("Hello, Twitter.")) {
    echo "Success";
} else {
    echo "Failure";
}
  1. Run the PHP script.
$ php tweet.php

The sample for "How will you use the Twitter API or Twitter data?"

  1. In your words

I'm using Twitter's API to make bot which tweet my contents. I want to increase access to my website. By tweeting regularly, I would like to raise awareness of my website against followers. So, I use only tweet my original contents by bot.

  1. Are you planning to analyze Twitter data?

No

  1. Will your app use Tweet, Retweet, like, follow, or Direct Message functionality?

Yes

I will use only Tweet bot. I won't interact with Twitter users or their content. So, I use only tweet my original contents by bot.

  1. Do you plan to display Tweets or aggregate data about Twitter content outside of Twitter?

No

  1. Will your product, service or analysis make Twitter content or derived information available to a government entity?

No

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固