DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:autotweet2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
plugin:autotweet2 [2018-08-29 17:34] – updated hokkaidopersonplugin:autotweet2 [2018-10-30 10:16] – Updated hokkaidoperson
Line 6: Line 6:
 email      : dosankomali@yahoo.co.jp  email      : dosankomali@yahoo.co.jp 
 type       : Action type       : Action
-lastupdate : 2018-08-29+lastupdate : 2018-10-30
 compatible : Greebo, 2018-04-22 compatible : Greebo, 2018-04-22
 similar    : autotweet similar    : autotweet
Line 34: Line 34:
  
 ==== Additional Operations ==== ==== Additional Operations ====
-You'll have to create an app through Twitter Apps.  Follow the instruction below.+**You'll have to sign up to Twitter Developer Platform to use Twitter API.**
  
-=== 1. Make an app === +Sorry but I'm not motivated to introduce you about signing up to the platform and creating Twitter API Google about them.
-Go to **https://apps.twitter.com** , and log in with the Twitter account you want to activate the auto-tweet.\\ +
-If you have never made apps through Twitter Apps, you'll see this screen, then choose ''**Create New App**''.+
  
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc1.png}}+Be careful, __it takes several days to be accepted by Twitter__.
  
-Maybe you are seeing this screen.+=== After you get the Twitter API ===
  
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc2.png}} +You'll enter your **Consumer Key**, **Consumer Secret**, **Access Token**, and **Access Token Secret** to the config of this plugin.  Use [[plugin:config|Configuration Manager]], scroll to **Autotweet2**, and fill in the blanks (also, you can change other settings of the plugin).
- +
-Fill in the form.  You don't have to enter Callback URLs.((Values in the image is just an example.)) +
- +
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc3.png}} +
- +
-Read the **Twitter Developer Agreement**, then check the box and push ''**Create your Twitter application**''+
- +
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc4.png}} +
- +
-Are you seeing this screen?  Good! +
- +
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc6.png}} +
- +
-== If you see this screen... == +
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc5.png}} +
- +
-You'll have to **register your phone number** to your twitter account.  Follow the instructions by Twitter.((You can delete your phone number from your Twitter account if you are not creating and editing your Twitter apps.)) +
- +
-=== 2. Get and enter your keys === +
-Go to ''**Keys and Access Tokens**''+
- +
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc7.png}} +
- +
-...and you'll see this screen.  Then scroll down. +
- +
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc8.png}} +
- +
-Find ''**Your Access Token**'', then push ''**Create my access token**''+
- +
-{{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc9.png}} +
- +
-Now you can see your **Consumer Key**, **Consumer Secret**, **Access Token**, and **Access Token Secret**.\\ +
-You'll enter them to the config of this plugin.  Use [[plugin:config|Configuration Manager]], scroll to **Autotweet2**, and fill in the blanks (also, you can change other settings of the plugin).+
  
 {{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc10.png}} {{https://raw.githubusercontent.com/hokkaidoperson/DokuWiki-Descriptions-Image/master/autotweet2/desc10.png}}
  
 +:!: The picture is the screen of https://apps.twitter.com, which became unable to create Twitter API via.\\
 :!: Consumer Secret and Access Token Secret shouldn't be seen by others.  **Please be sure that your conf directory is secured** (see [[:security#web_access_security]]). :!: Consumer Secret and Access Token Secret shouldn't be seen by others.  **Please be sure that your conf directory is secured** (see [[:security#web_access_security]]).
  
Line 94: Line 60:
 |''apiKey'', ''apiSecret'', ''accessToken'', and ''accessTokenSecret''|See the instruction above.|string|((empty))| |''apiKey'', ''apiSecret'', ''accessToken'', and ''accessTokenSecret''|See the instruction above.|string|((empty))|
 |''subjectOfTweet''|Subjects of the auto-tweet (choose from when edited, reverted, created, deleted, and edited [minor changes])|multiple choice from ''edit'', ''revert'', ''create'', ''delete'', and ''minor''|''edit,revert,create,delete''| |''subjectOfTweet''|Subjects of the auto-tweet (choose from when edited, reverted, created, deleted, and edited [minor changes])|multiple choice from ''edit'', ''revert'', ''create'', ''delete'', and ''minor''|''edit,revert,create,delete''|
-|''template''|Template of the message\\ REPLACEMENT:\\ ###WIKITITLE###→The title of this wiki\\ ###PAGETITLE###→The title of the edited page\\ ###TYPE###→The type of editing ("edited", "reverted", "created", "deleted", or "edited (minor change)" will be shown)\\ ###SUMMARY###→The summary of editing\\ ###PAGEURL###→The URL leading to the edited page (if there is not ###PAGEURL###, the URL will be automatically added to the last of the template)|textarea|''[###WIKITITLE### - ###TYPE###] ###PAGETITLE###: ###SUMMARY### ###PAGEURL###''|+|''template''|Template of the message\\ REPLACEMENT:\\ ###WIKITITLE###→The title of this wiki\\ ###PAGETITLE###→The title of the edited page\\ ###TYPE###→The type of editing ("edited", "reverted", "created", "deleted", or "edited (minor change)" will be shown)\\ ###SUMMARY###→The summary of editing\\ ###EDITOR###→Who changed the wiki (Follows the config "[[config:showuseras]]")\\ ###PAGEURL###→The URL leading to the edited page (if there is not ###PAGEURL###, the URL will be automatically added to the last of the template)|textarea|''[###WIKITITLE### - ###TYPE### by ###EDITOR###] ###PAGETITLE###: ###SUMMARY### ###PAGEURL###''
 +|''guestIP''|What to replace ###EDITOR### of the template with if the editor was not logging in|pull-down choice from ''0'' (Don\'t show the IP address, replace with the null text), ''alt'' (Replace with the alternative text ([[plugin:hidingip|Hidingip plugin]] required.)), or ''show'' (Show the IP address)|''0''|
 |''blacklist''|Pages that will not be subjects of auto-tweet (separate by vertical bars "<nowiki>|</nowiki>")\\ e.g.:"<nowiki>playground:playground|start|wiki:syntax</nowiki>"|string|((empty))| |''blacklist''|Pages that will not be subjects of auto-tweet (separate by vertical bars "<nowiki>|</nowiki>")\\ e.g.:"<nowiki>playground:playground|start|wiki:syntax</nowiki>"|string|((empty))|
 |''debug''|If the editor is a manager, show the debug information (a body (JSON) and a response header) when the plugin is run (Use this option to investigate causes when the plugin doesn't work well.)|boolean|''0''| |''debug''|If the editor is a manager, show the debug information (a body (JSON) and a response header) when the plugin is run (Use this option to investigate causes when the plugin doesn't work well.)|boolean|''0''|
Line 107: Line 74:
     * From this version, a space will be inserted after an at-mark ''@'' not to violent the Twitter rule that prohibits "automated @ tweets"     * From this version, a space will be inserted after an at-mark ''@'' not to violent the Twitter rule that prohibits "automated @ tweets"
     * Added an option "debug"     * Added an option "debug"
 +  * **2018-10-30**
 +    * Added a option to tweet who changes the wiki
  
 === Known Bugs and Issues === === Known Bugs and Issues ===
plugin/autotweet2.txt · Last modified: 2019-10-25 10:05 by Dr-Yukon

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki