Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6732957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:42:43+00:00 2026-05-26T10:42:43+00:00

I am trying to retrieve some blob information using github rest api . Being

  • 0

I am trying to retrieve some blob information using github rest api. Being exactly http://develop.github.com/p/object.html the blob/show/:user/:repo/:tree_sha/:path
I get problems when requesting a file that is in a sub folder.

for example:

http://github.com/api/v2/xml/blob/show/ user / repository / *tree_shar* /folder/subfolder/file.htm

http://github.com/api/v2/xml/blob/show/alexanderbeletsky/blog.beletsky.net/f79e40c279db8f02d1ecec263305520b880261a3/Linkedin/Summary.htm

doesnt work.

how should the :path look?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:42:44+00:00Added an answer on May 26, 2026 at 10:42 am

    Your request looks just fine and you were using the :path variable correctly. But you used the wrong SHA. The SHA you used is from a commit. You need to use a tree SHA. You also need to make sure to use a tree SHA where the file Linkedin/Summary.htm exists. The correct SHA is: b0215ec2989369ad39f81e11ecdd29ddf2be83c8

    And the full request:

    https://github.com/api/v2/xml/blob/show/alexanderbeletsky/blog.beletsky.net/b0215ec2989369ad39f81e11ecdd29ddf2be83c8/Linkedin/Summary.htm

    Edit: I totally forgot to tell how to get the tree SHA: First I checked out your repo from github:

    git clone https://github.com/alexanderbeletsky/blog.beletsky.net.git

    Then I checked the most recent commit of Linkedin/Summary.htm:

    git log -n 1 --pretty=raw Linkedin/Summary.htm
    commit 93318187799f4b18662954519e7367ad0861924e
    tree b0215ec2989369ad39f81e11ecdd29ddf2be83c8
    parent 32c30665d5d1c9ff14ada1565b16f9019ebe2dcf
    author alexander.beletsky <alexander.beletsky@gmail.com> 1298272994 +0200
    committer alexander.beletsky <alexander.beletsky@gmail.com> 1298272994 +0200
    

    And there it was: tree b0215ec2989369ad39f81e11ecdd29ddf2be83c8

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to retrieve some information about my hard drives using PowerShell (very new
I'm trying to use feedparser to retrieve some specific information from feeds, but also
I'm trying to develop a site with some youtube videos. After I retrieve the
I am trying to retrieve some data from a database using jQuery's $.getJSON method
I am trying to retrieve some information about any given webpage (namely the of
I am trying to code an simple PHP application which will retrieve some information
im trying to retrieve some data using a reader in vb.net. I dont have
I am trying to retrieve some rows from the database using simple SELECT statement
I am using Ruby on Rails 3 and I am trying to retrieve some
I'm trying to use google analytics API to retrieve some data to build a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.