-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from RyanLua/polish-docs
Add a Getting Started and improve documentation
- Loading branch information
Showing
15 changed files
with
230 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
Getting Started | ||
=============== | ||
|
||
Learn about getting started with InstaWebhooks to send new Instagram posts any Discord channel from scratch. | ||
|
||
Installing InstaWebhooks | ||
------------------------ | ||
|
||
With `Python <https://www.python.org/>`_ installed, install InstaWebhooks with `pip <https://pypi.org/project/pip/>`_: | ||
|
||
.. code:: console | ||
$ pip install instawebhooks | ||
Check that InstaWebhooks was installed correctly by seeing if it reports its version: | ||
|
||
.. code:: console | ||
$ instawebhooks --version | ||
Make sure that are on the `latest version of InstaWebhooks <https://pypi.org/project/instawebhooks/>`_. | ||
|
||
For more ways to install InstaWebhooks, see the `installation guide <installation.html>`_. | ||
|
||
Setting up Discord webhooks | ||
--------------------------- | ||
|
||
To get your Discord webhook URL, you need the **Manage Webhooks** permission in the channel you want to send new Instagram posts to. | ||
|
||
You can learn more about webhooks through the article, `Intro to Webhooks <https://support.discord.com/hc/en-us/articles/228383668>`_. | ||
|
||
Creating your webhook | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
If your already have a webhook, you can skip this step. | ||
|
||
#. Open **Server Settings**, then **Integrations** | ||
#. Click the "**Create Webhook**" button | ||
|
||
.. image:: _static/integrations-tab.png | ||
|
||
Now you can set the name, channel, and avatar for the webhook. | ||
|
||
Getting the webhook URL | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
When you have your webhook made, click the "**Copy Webhook URL**" button to copy the URL to your clipboard. | ||
|
||
.. image:: _static/webhook-settings.png | ||
|
||
The copied URL should look similar this: | ||
|
||
.. code:: none | ||
https://discordapp.com/api/webhooks/0123456789/abcdefghijklmnopqrstuvwxyz | ||
Setting up InstaWebhooks | ||
------------------------ | ||
|
||
Now with the webhook URL and a Instagram account in mind, you can set up InstaWebhooks to send new Instagram posts to your Discord channel. | ||
|
||
Replace ``<INSTAGRAM_USERNAME>`` with the username of the Instagram account you want to monitor and ``<DISCORD_WEBHOOK_URL>`` with the Discord webhook URL you copied earlier. | ||
|
||
.. code:: console | ||
$ instawebhooks <INSTAGRAM_USERNAME> <DISCORD_WEBHOOK_URL> | ||
It should look something like this: | ||
|
||
.. code:: console | ||
$ instawebhooks raenlua https://discord.com/api/webhooks/0123456789/abcdefghijklmnopqrstuvwxyz | ||
Now, whenever the Instagram account `@raenlua` posts a new photo, it will be sent to the Discord webhook. | ||
|
||
.. image:: _static/webhook-message.png | ||
|
||
For more information about using InstaWebhooks, see the `usage guide <usage.html>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.