Last active
August 29, 2015 14:11
-
-
Save vernalkick/9ce9d678c258b5af5a9f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'rest_client' | |
params = { | |
:path => "test.txt", | |
:message => "Test Commit", | |
:committer => { | |
:name => "Kevin Clark", | |
:email => "[email protected]" | |
}, | |
:content => "bXkgbmV3IGZpbGUgY29udGVudHM=" | |
} | |
header = { | |
:Authorization => "token <TOKEN>" | |
} | |
RestClient.put "https://api.github.com/repos/vernalkick/kevinclark/contents/test.txt", params, header |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gives me a