'Get the README' API V3 github converted
I need to get the README content of my Github repo and I went for 'Get the
README' API V3, but it is encoded base64:
{
"name": "README.rdoc",
"path": "README.rdoc",
"sha": "d21b593aedfa49030478ead89c4ac991268c75c0",
"size": 4939,
"url":
"https://api.github.com/repos/lgs/paymill-on-rails/contents/README.rdoc?ref=master",
"html_url":
"https://github.com/lgs/paymill-on-rails/blob/master/README.rdoc",
"git_url":
"https://api.github.com/repos/lgs/paymill-on-rails/git/blobs/d21b593aedfa49030478ead89c4ac991268c75c0",
"type": "file",
"content":
"PT0gUGF5bWlsbCBvbiBSYWlscyA0LjAuMCAKClBheW1pbGwgc3Vic2NyaXB0\naW9ucyBvbiBSYWlscyA0LjAuMCBhbmQgcnVieS0yLjAuMC1wMjQ3LCB7ZGVw\nbG95ZWQgb24gSGVyb2t1fVtodHRwczovL3BheW1pbGwtb24tcmFpbHMuaGVy\nb2t1YXBwLmNvbV0uIFRoaXMgaXMgYmFzZWQgb24ge01hcmMgQi4nc31baHR0
...
...,
"encoding": "base64",
"_links": {
"self":
"https://api.github.com/repos/lgs/paymill-on-rails/contents/README.rdoc?ref=master",
"git":
"https://api.github.com/repos/lgs/paymill-on-rails/git/blobs/d21b593aedfa49030478ead89c4ac991268c75c0",
"html": "https://github.com/lgs/paymill-on-rails/blob/master/README.rdoc"
}
}
What is the way to get/convert the "content": "PT0gUGF5bWlsbCBv ..." in
clear text (not base64 encoded) ?
No comments:
Post a Comment