Gary, direct_messages/new requires a HTTP POST request. I can see from the URL you pasted in the post that you have a query string. If you are sending a POST request you would have no query string.
Doug Williams Twitter API Support http://twitter.com/dougw On Thu, Apr 9, 2009 at 10:21 PM, Alex Payne <a...@twitter.com> wrote: > > 400 is the response code we return for rate limiting. Are you sure > you're making the request using an HTTP POST? What was the body of the > response? > > On Thu, Apr 9, 2009 at 18:22, Gary Zhao <garyz...@gmail.com> wrote: > > http://twitter.com/direct_messages/new.json?user=qinqi7&text=test > > I got "The remote server returned an error: (400) Bad Request." Anything > > wrong with this API invocation? > > Thanks > > > > -- > > Gary > > http://twitter.com/garyzhao > > > > > > -- > Alex Payne - API Lead, Twitter, Inc. > http://twitter.com/al3x >