Last active
August 29, 2015 14:06
-
-
Save guypursey/71c0f5c80fae51daedd8 to your computer and use it in GitHub Desktop.
Remove file from Scriptogr.am via the API
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 script requires `curl` package to be installed. | |
# Replace `$APP_KEY` with the app key from your Scriptogr.am account below OR uncomment the line below and add the ID as a value to the variable. You can get the app key by adding your application on this page (when logged in): http://scriptogr.am/dashboard#developers | |
# $APP_KEY= | |
# Replace `$USER_ID` with the ID from your Scriptogr.am account below OR uncomment the line below and add the ID as a value to the variable. You can get your user ID from towards the bottom of this page (when logged in): http://scriptogr.am/dashboard#settings | |
# $USER_ID= | |
# Replace `$POST_NAME` with the name of the file you want to remove (minus the `.md` extension) OR uncomment the line below and add the extension-less filename as a value to the variable. | |
# $POST_NAME= | |
curl \ | |
-d app_key=$APP_KEY \ | |
-d user_id=$USER_ID \ | |
-d filename="$POST_NAME.md" \ | |
\ | |
scriptogr.am/api/article/delete/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment