Mah!Cade:Twitter

From Wah!ki
Revision as of 01:52, 7 November 2013 by Sairuk (talk | contribs) (→‎About)
Jump to navigation Jump to search

About

Twitter support through the tweepy library was added in commit 140. This will publish the game launched from Mah!Cade to your twitter feed once you have provided access keys with write access through the OAuth protocol.

The published tweet will be in the following format "I am playing <game_name> <year> by <manufacturer> on <emulator_name> using #mahcade <custom_tags>"

Setup

  • 'Create a new application' on https://dev.twitter.com/apps
    1. Enter the required values (anything you like) marked with an asterix
    2. Accept the license agreement
    3. Enter the captcha
    4. Press 'Create your twitter application'
  • Open the settings tab
    1. Under Application Access select Read & Write
    2. Press 'Update this Twitter applications settings
  • Open the details tab
    1. Press 'Create my access token'
    2. Once generated, confirm your access level is 'Read and Write'
  • Open wahcade.ini
    1. Add these new options
### Twitter OAuth Options ###
consumer_key
consumer_secret
access_key
access_secret
custom_tags
  • From your new twitter application add the keys as per below
Consumer Key => consumer_key
Consumer Secret => consumer_secret
Access Token => access_key
Access Token Secret => access_secret

This will give you authorization to write to your twitter timeline at Mah!Cade run time.

Additionally you may add custom text to the 'custom_tags' option in wahcade.ini. This text will be appended to the published line provided the line is not over 140 characters once combined.