Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue making POST request to Basecamp
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Liam McArdle  
View profile  
 More options Aug 4 2012, 3:08 am
From: Liam McArdle <mcardle.l...@gmail.com>
Date: Sat, 4 Aug 2012 00:08:45 -0700 (PDT)
Local: Sat, Aug 4 2012 3:08 am
Subject: Issue making POST request to Basecamp

While I have no issue making a GET request to basecamp, I keep getting an
error every time I make a POST request.  The error is  

*RestClient::UnsupportedMediaType:* 415 Unsupported Media Type.  Does
anyone know why I might be getting this.  Below is the method I'm calling
for the POST request.

def create_bc_project(name, description)
  my_url = "https://basecamp.com/1942899/api/v1/projects.json"
  my_user = "<my user name>"
  my_password = "<my password>"

  resource = RestClient::Request.new(
              :method => :post,
              :url => my_url,
              :content_type => "application/json; charset=utf-8",
              :user_agent => "MyApp",
              :user => my_user,
              :password => my_password,
              :payload => { :name => name, :description => description }
            ).execute
end


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eugène van der Merwe  
View profile  
 More options Sep 25 2012, 9:01 am
From: Eugène van der Merwe <eug...@snowball.co.za>
Date: Tue, 25 Sep 2012 06:01:50 -0700 (PDT)
Local: Tues, Sep 25 2012 9:01 am
Subject: Re: Issue making POST request to Basecamp

Did you ever get this resolved? I am having the same issue trying to update
a project..


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »