Last active
August 29, 2015 14:02
-
-
Save letusfly85/93c780b966aa18580447 to your computer and use it in GitHub Desktop.
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
export base_url=http://jellyfish85.com/sosick | |
export username=**** | |
export userpass=**** | |
curl -XGET -c cookie.txt ${base_url}/users/auth/twitter | |
export oauth_token= | |
curl -XPOST -b cookie.txt -d "session[username_or_email]=${username}" -d "session[password]=${userpass}" https://api.twitter.com/oauth/authorize?oauth_token=$oauth_token | grep veri | |
export oauth_verifier= | |
curl -L -b cookie.txt -c cookie.txt "${base_url}/users/auth/twitter/callback?oauth_token=${oauth_token}&oauth_verifier=${oauth_verifier}" |
view-source:https://www.facebook.com/login.php?skip_api_login=1&api_key=590225104427300&signed_next=1&next=https%3A%2F%2Fwww.facebook.com%2Fv2.0%2Fdialog%2Foauth%3Fredirect_uri%3Dhttp%253A%252F%252F0.0.0.0%253A3000%252Fusers%252Fauth%252Ffacebook%252Fcallback%26state%3D0456cfe4ec9ea1c229122ca02a5e6237ff5f390d9a862d47%26scope%3Demail%26response_type%3Dcode%26client_id%3D590225104427300%26ret%3Dlogin&cancel_uri=http%3A%2F%2F0.0.0.0%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback%3Ferror%3Daccess_denied%26error_code%3D200%26error_description%3DPermissions%2Berror%26error_reason%3Duser_denied%26state%3D0456cfe4ec9ea1c229122ca02a5e6237ff5f390d9a862d47%23_%3D_&display=page
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -L -b cookie.txt -c cookie.txt $base_url/comments/19/append?type=json -d id=19 -d commit="comment" -d comment[photo_title]="sosick"