Twitter API

Overview
Maian Music supports the Twitter Rest API, which enables you to post a tweet directly from the admin control panel. Before you can start posting tweets, you need to set up an app in Twitter and add the access keys / tokens to Maian Music via the 'Social Settings > Twitter API' tab.

Please follow the instructions below carefully:
System Requirements
For the rest API to function your server MUST meet the following requirements:

PHP7 or higher.
CURL functions enabled.
Open SSL functions enabled on server (Optional, but recommended).

If your server doesn't meet the required criteria, the twitter API may not work.
Twitter App Setup
To set up your app, please follow these instructions:

1 Log into https://dev.twitter.com/apps/ and click "Create New App".

2 Enter a Name, Description and Website value. For website just enter your store homepage. Then click to create the app.

3 On the next screen you'll see your settings. The "Consumer Key & Secret Key" are auto created.

4 Scroll down to "Your Access Token" and click the "Create My Access Token" button. This will auto create your "Access Token & Secret Key".

5 Go to your Maian Music admin area and enter the values on the 'Settings > Other > Social/Services' tab.
Posting a Tweet
To post a tweet in the Maian Music admin area click the "Post Tweet" link on the top menu. If you don't see this after entering your keys, refresh the admin screen. See screenshot below:


This won't be seen until you update the settings. To disable this remove at least one of the values on the settings screen.
Tweet Max 140 Characters
Twitter allows a maximum of 140 characters for tweets at the time of these docs, but changes are in place to allow 280 characters. Any urls sent will automatically be converted, so in the tweet text box just enter the url normally and DO NOT use html tags. Example:

"Check out my new website at http://www.example.com"
Experimental
Note that this feature is experimental and more functions may be added later.