Note that there are some explanatory texts on larger screens.

plurals
  1. POHelp with Google Code Issue Tracker API
    primarykey
    data
    text
    <p>Long story short: I'm trying to post comments and create issues onto Google Code via an Android App called Abugadro. </p> <p>I followed a very similar piece of code here: <a href="https://stackoverflow.com/questions/3254330/google-spreadsheet-api-update-edit-with-protocol">Google Spreadsheet API update \ edit with protocol</a></p> <p>When trying to post a comment onto the API, I've gotten various errors like 403 and 501 depending on the headers I use. </p> <p>Anyway, Code talks, so here's my piece: </p> <pre><code>HttpPost postRequest = new HttpPost("http://code.google.com/feeds/issues/p/"+projName+"/issues/"+issueId+"/comments/full"); postRequest.addHeader("Content-Type","application/atom+xml;charset=UTF-8"); postRequest.setHeader("Authorization", "GoogleLogin auth=" + auth); postRequest.addHeader("User-Agent", "abugadro-v"+getResources().getString(R.string.version)); postRequest.addHeader("Accept-Encoding","gzip"); postRequest.addHeader("GData-Version", "1.0"); //postRequest.addHeader("If-Match", "*");//Not entirely sure if I should use this or not HttpEntity se = new StringEntity(xml,"UTF-8"); //Contains the comment info postRequest.setEntity(se); </code></pre> <p>The IssueTrackerAPI is very vague on what sort of headers I should be using to post correctly. <a href="http://code.google.com/p/support/wiki/IssueTrackerAPI#Modifying_an_issue_or_creating_issue_comments" rel="nofollow noreferrer">http://code.google.com/p/support/wiki/IssueTrackerAPI#Modifying_an_issue_or_creating_issue_comments</a></p> <p>P.S. I know there's a gdata-java-client but there's no sane way to use that api on android without dragging ~2mb of jars. </p> <p>I really appreciate your help, this issue has been driving me insane beyond comprehension. Thanks again. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload