Are you using one of our API client libraries (available here<http://tripit.github.com/api/>) to connect to api.tripit.com? If so, those should work out of the box with no hassle and I recommend using them for ease of integration. If not, what library(s)/OS/platform are you using? We can try to help you debug client code to a certain extent, but no promises. With an invalid signature error, the first thing I'd need from you for a particular failure would be the consumer key involved in the failure, the approximate date/time (and your timezone) of the failure, and the exact oauth signature base string value generated by your client oauth request generation code.
/thor
On Mon, Feb 27, 2012 at 2:28 AM, Liyan Zhao <liyan.z...@openjawtech.com>wrote:
> -- > You received this message because you are subscribed to the Google Groups > "TripIt API" group. > To post to this group, send email to api_tripit@googlegroups.com. > To unsubscribe from this group, send email to > api_tripit+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/api_tripit?hl=en.
> Are you using one of our API client libraries (available
> here<http://tripit.github.com/api/>)
> to connect to api.tripit.com? If so, those should work out of the box with
> no hassle and I recommend using them for ease of integration. If not, what
> library(s)/OS/platform are you using? We can try to help you debug client
> code to a certain extent, but no promises. With an invalid signature
> error, the first thing I'd need from you for a particular failure would be
> the consumer key involved in the failure, the approximate date/time (and
> your timezone) of the failure, and the exact oauth signature base string
> value generated by your client oauth request generation code.
> /thor
> On Mon, Feb 27, 2012 at 2:28 AM, Liyan Zhao <liyan.z...@openjawtech.com>wrote:
> > Hi,
> > I'm really stuck, could anyone shed light on this?
> > Cheers,
> > Liyan
> > On Feb 24, 3:30 pm, Liyan Zhao <liyan.z...@openjawtech.com> wrote:
> > > Hi,
> > > I'm trying to integrate TripIt with my website, and have hit a
> > > blocker.
> > --
> > You received this message because you are subscribed to the Google Groups
> > "TripIt API" group.
> > To post to this group, send email to api_tripit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > api_tripit+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/api_tripit?hl=en.
> I was using a third party JS library for OAuth. Since I was blocked by
> the aforementioned issue, I just switched over to using your Java API.
> The Java lib got me further. However I'm facing another issue.
> My goal is to publish user's itinerary into their TripIt account. I've
> got the OAuth stuff working, but have problems with the create api.
> I always get HTTP400 when I post my travel object to the url.
> Not sure how to attach files here, so here's my request in xml. It
> validates against the xsd posted on your api site. My client key is:
> c9e88e98c45b948b1bb0371599f522ab60b2005b
> <Request>
> <AirObject>
> <is_client_traveler>true</is_client_traveler>
> <booking_site_name>Right Destinations</booking_site_name>
> <booking_site_phone>1-800-123-456-1</booking_site_phone>
> <booking_site_url>http://www.rightdestinations.com</
> booking_site_url>
> <supplier_conf_num>5LRQ7N</supplier_conf_num>
> <Segment>
> <StartDateTime>
> <date>2012-03-17</date>
> <time>16:00:00</time>
> </StartDateTime>
> <EndDateTime>
> <date>2012-03-17</date>
> <time>19:35:00</time>
> </EndDateTime>
> <start_city_name>Dublin</start_city_name>
> <end_city_name>Barcelona</end_city_name>
> <marketing_airline>EI</marketing_airline>
> <marketing_flight_number>50120</marketing_flight_number>
> </Segment>
> <Segment>
> <StartDateTime>
> <date>2012-03-31</date>
> <time>16:55:00</time>
> </StartDateTime>
> <EndDateTime>
> <date>2012-03-31</date>
> <time>19:25:00</time>
> </EndDateTime>
> <start_city_name>Barcelona</start_city_name>
> <end_city_name>Dublin</end_city_name>
> <marketing_airline>IB</marketing_airline>
> <marketing_flight_number>50130</marketing_flight_number>
> </Segment>
> <Traveler>
> <first_name>Liyan</first_name>
> <last_name>Zhao</last_name>
> </Traveler>
> </AirObject>
> </Request>
> On Feb 27, 6:08 pm, Thor Denmark <tdenm...@gmail.com> wrote:
> > Hi Liyan --
> > Are you using one of our API client libraries (available
> > here<http://tripit.github.com/api/>)
> > to connect to api.tripit.com? If so, those should work out of the box with
> > no hassle and I recommend using them for ease of integration. If not, what
> > library(s)/OS/platform are you using? We can try to help you debug client
> > code to a certain extent, but no promises. With an invalid signature
> > error, the first thing I'd need from you for a particular failure would be
> > the consumer key involved in the failure, the approximate date/time (and
> > your timezone) of the failure, and the exact oauth signature base string
> > value generated by your client oauth request generation code.
> > /thor
> > On Mon, Feb 27, 2012 at 2:28 AM, Liyan Zhao <liyan.z...@openjawtech.com>wrote:
> > > Hi,
> > > I'm really stuck, could anyone shed light on this?
> > > Cheers,
> > > Liyan
> > > On Feb 24, 3:30 pm, Liyan Zhao <liyan.z...@openjawtech.com> wrote:
> > > > Hi,
> > > > I'm trying to integrate TripIt with my website, and have hit a
> > > > blocker.
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "TripIt API" group.
> > > To post to this group, send email to api_tripit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > api_tripit+unsubscribe@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/api_tripit?hl=en.
HTTP 400 indicates a bad request. Did you inspect the response content to the failed request below? In that respones content you should see a specific error message indicating what was wrong with the request. If you don't see that, then please also send along the exact date/time (and timezone you're in) for either the failed request below, or invoke another failed request and send along the time of that incident. Thanks.
/thor
On Tue, Feb 28, 2012 at 3:51 AM, Liyan Zhao <liyan.z...@openjawtech.com>wrote:
> I was using a third party JS library for OAuth. Since I was blocked by > the aforementioned issue, I just switched over to using your Java API.
> The Java lib got me further. However I'm facing another issue.
> My goal is to publish user's itinerary into their TripIt account. I've > got the OAuth stuff working, but have problems with the create api.
> I always get HTTP400 when I post my travel object to the url.
> Not sure how to attach files here, so here's my request in xml. It > validates against the xsd posted on your api site. My client key is: > c9e88e98c45b948b1bb0371599f522ab60b2005b > <Request> > <AirObject> > <is_client_traveler>true</is_client_traveler> > <booking_site_name>Right Destinations</booking_site_name> > <booking_site_phone>1-800-123-456-1</booking_site_phone> > <booking_site_url>http://www.rightdestinations.com</ > booking_site_url> > <supplier_conf_num>5LRQ7N</supplier_conf_num> > <Segment> > <StartDateTime> > <date>2012-03-17</date> > <time>16:00:00</time> > </StartDateTime> > <EndDateTime> > <date>2012-03-17</date> > <time>19:35:00</time> > </EndDateTime> > <start_city_name>Dublin</start_city_name> > <end_city_name>Barcelona</end_city_name> > <marketing_airline>EI</marketing_airline> > <marketing_flight_number>50120</marketing_flight_number> > </Segment> > <Segment> > <StartDateTime> > <date>2012-03-31</date> > <time>16:55:00</time> > </StartDateTime> > <EndDateTime> > <date>2012-03-31</date> > <time>19:25:00</time> > </EndDateTime> > <start_city_name>Barcelona</start_city_name> > <end_city_name>Dublin</end_city_name> > <marketing_airline>IB</marketing_airline> > <marketing_flight_number>50130</marketing_flight_number> > </Segment> > <Traveler> > <first_name>Liyan</first_name> > <last_name>Zhao</last_name> > </Traveler> > </AirObject> > </Request>
> On Feb 27, 6:08 pm, Thor Denmark <tdenm...@gmail.com> wrote: > > Hi Liyan --
> > Are you using one of our API client libraries (available > > here<http://tripit.github.com/api/>) > > to connect to api.tripit.com? If so, those should work out of the box > with > > no hassle and I recommend using them for ease of integration. If not, > what > > library(s)/OS/platform are you using? We can try to help you debug > client > > code to a certain extent, but no promises. With an invalid signature > > error, the first thing I'd need from you for a particular failure would > be > > the consumer key involved in the failure, the approximate date/time (and > > your timezone) of the failure, and the exact oauth signature base string > > value generated by your client oauth request generation code.
> > /thor
> > On Mon, Feb 27, 2012 at 2:28 AM, Liyan Zhao <liyan.z...@openjawtech.com > >wrote:
> > > Hi,
> > > I'm really stuck, could anyone shed light on this?
> > > Cheers, > > > Liyan
> > > On Feb 24, 3:30 pm, Liyan Zhao <liyan.z...@openjawtech.com> wrote: > > > > Hi,
> > > > I'm trying to integrate TripIt with my website, and have hit a > > > > blocker.
> > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "TripIt API" group. > > > To post to this group, send email to api_tripit@googlegroups.com. > > > To unsubscribe from this group, send email to > > > api_tripit+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/api_tripit?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "TripIt API" group. > To post to this group, send email to api_tripit@googlegroups.com. > To unsubscribe from this group, send email to > api_tripit+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/api_tripit?hl=en.
Here's the debug info on my side. The server date returned was: Wed,
29 Feb 2012 11:08:09 GMT. It has the auth header, and request xml. I'm
trying to create a trip on behave of TripIt user: liyan.zhao at
openjawtech.com
> HTTP 400 indicates a bad request. Did you inspect the response content to
> the failed request below? In that respones content you should see a
> specific error message indicating what was wrong with the request. If you
> don't see that, then please also send along the exact date/time (and
> timezone you're in) for either the failed request below, or invoke another
> failed request and send along the time of that incident.
> Thanks.
> /thor
> On Tue, Feb 28, 2012 at 3:51 AM, Liyan Zhao <liyan.z...@openjawtech.com>wrote:
> > Thanks Thor for replying.
> > I was using a third party JS library for OAuth. Since I was blocked by
> > the aforementioned issue, I just switched over to using your Java API.
> > The Java lib got me further. However I'm facing another issue.
> > My goal is to publish user's itinerary into their TripIt account. I've
> > got the OAuth stuff working, but have problems with the create api.
> > I always get HTTP400 when I post my travel object to the url.
> > On Feb 27, 6:08 pm, Thor Denmark <tdenm...@gmail.com> wrote:
> > > Hi Liyan --
> > > Are you using one of our API client libraries (available
> > > here<http://tripit.github.com/api/>)
> > > to connect to api.tripit.com? If so, those should work out of the box
> > with
> > > no hassle and I recommend using them for ease of integration. If not,
> > what
> > > library(s)/OS/platform are you using? We can try to help you debug
> > client
> > > code to a certain extent, but no promises. With an invalid signature
> > > error, the first thing I'd need from you for a particular failure would
> > be
> > > the consumer key involved in the failure, the approximate date/time (and
> > > your timezone) of the failure, and the exact oauth signature base string
> > > value generated by your client oauth request generation code.
> > > /thor
> > > On Mon, Feb 27, 2012 at 2:28 AM, Liyan Zhao <liyan.z...@openjawtech.com
> > >wrote:
> > > > Hi,
> > > > I'm really stuck, could anyone shed light on this?
> > > > Cheers,
> > > > Liyan
> > > > On Feb 24, 3:30 pm, Liyan Zhao <liyan.z...@openjawtech.com> wrote:
> > > > > Hi,
> > > > > I'm trying to integrate TripIt with my website, and have hit a
> > > > > blocker.
> > > > > Any idea why TripIt thinks it's invalid?
> > > > > Cheers,
> > > > > Liyan
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "TripIt API" group.
> > > > To post to this group, send email to api_tripit@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > api_tripit+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/api_tripit?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups
> > "TripIt API" group.
> > To post to this group, send email to api_tripit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > api_tripit+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/api_tripit?hl=en.
> Here's the debug info on my side. The server date returned was: Wed,
> 29 Feb 2012 11:08:09 GMT. It has the auth header, and request xml. I'm
> trying to create a trip on behave of TripIt user: liyan.zhao at
> openjawtech.com
> at
> net.oauth.client.OAuthResponseMessage.toOAuthProblemException(OAuthResponse Message.java:
> 83)
> On Feb 28, 6:41 pm, Thor Denmark <tdenm...@gmail.com> wrote:
> > Hi Liyan --
> > HTTP 400 indicates a bad request. Did you inspect the response content to
> > the failed request below? In that respones content you should see a
> > specific error message indicating what was wrong with the request. If you
> > don't see that, then please also send along the exact date/time (and
> > timezone you're in) for either the failed request below, or invoke another
> > failed request and send along the time of that incident.
> > Thanks.
> > /thor
> > On Tue, Feb 28, 2012 at 3:51 AM, Liyan Zhao <liyan.z...@openjawtech.com>wrote:
> > > Thanks Thor for replying.
> > > I was using a third party JS library for OAuth. Since I was blocked by
> > > the aforementioned issue, I just switched over to using your Java API.
> > > The Java lib got me further. However I'm facing another issue.
> > > My goal is to publish user's itinerary into their TripIt account. I've
> > > got the OAuth stuff working, but have problems with the create api.
> > > I always get HTTP400 when I post my travel object to the url.
> > > On Feb 27, 6:08 pm, Thor Denmark <tdenm...@gmail.com> wrote:
> > > > Hi Liyan --
> > > > Are you using one of our API client libraries (available
> > > > here<http://tripit.github.com/api/>)
> > > > to connect to api.tripit.com? If so, those should work out of the box
> > > with
> > > > no hassle and I recommend using them for ease of integration. If not,
> > > what
> > > > library(s)/OS/platform are you using? We can try to help you debug
> > > client
> > > > code to a certain extent, but no promises. With an invalid signature
> > > > error, the first thing I'd need from you for a particular failure would
> > > be
> > > > the consumer key involved in the failure, the approximate date/time (and
> > > > your timezone) of the failure, and the exact oauth signature base string
> > > > value generated by your client oauth request generation code.
> > > > /thor
> > > > On Mon, Feb 27, 2012 at 2:28 AM, Liyan Zhao <liyan.z...@openjawtech.com
> > > >wrote:
> > > > > Hi,
> > > > > I'm really stuck, could anyone shed light on this?
> > > > > > Any idea why TripIt thinks it's invalid?
> > > > > > Cheers,
> > > > > > Liyan
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "TripIt API" group.
> > > > > To post to this group, send email to api_tripit@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > api_tripit+unsubscribe@googlegroups.com.
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/api_tripit?hl=en.
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "TripIt API" group.
> > > To post to this group, send email to api_tripit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > api_tripit+unsubscribe@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/api_tripit?hl=en.
If you look at the response body content for that request I believe you'll see the following error message string being rendered back to your client: "no document present under request parameter key 'xml'". TripIt almost always renders errors back to you in the response content.
What this particular error means is that you're not putting an http POST request parameter key in front of your urlencoded xml document which is also apparent from the info you include below (thanks for all the details!).
So, instead of a POST payload starting with "<Request><AirOb....", try signing the request with POST request content that starts with "*xml=* <Request><AirOb....".
Cheers.
/thor
On Wed, Feb 29, 2012 at 3:10 AM, Liyan Zhao <liyan.z...@openjawtech.com>wrote:
> Here's the debug info on my side. The server date returned was: Wed, > 29 Feb 2012 11:08:09 GMT. It has the auth header, and request xml. I'm > trying to create a trip on behave of TripIt user: liyan.zhao at > openjawtech.com
> On Feb 28, 6:41 pm, Thor Denmark <tdenm...@gmail.com> wrote: > > Hi Liyan --
> > HTTP 400 indicates a bad request. Did you inspect the response content > to > > the failed request below? In that respones content you should see a > > specific error message indicating what was wrong with the request. If > you > > don't see that, then please also send along the exact date/time (and > > timezone you're in) for either the failed request below, or invoke > another > > failed request and send along the time of that incident. > > Thanks.
> > /thor
> > On Tue, Feb 28, 2012 at 3:51 AM, Liyan Zhao <liyan.z...@openjawtech.com > >wrote:
> > > Thanks Thor for replying.
> > > I was using a third party JS library for OAuth. Since I was blocked by > > > the aforementioned issue, I just switched over to using your Java API.
> > > The Java lib got me further. However I'm facing another issue.
> > > My goal is to publish user's itinerary into their TripIt account. I've > > > got the OAuth stuff working, but have problems with the create api.
> > > I always get HTTP400 when I post my travel object to the url.
> > > On Feb 27, 6:08 pm, Thor Denmark <tdenm...@gmail.com> wrote: > > > > Hi Liyan --
> > > > Are you using one of our API client libraries (available > > > > here<http://tripit.github.com/api/>) > > > > to connect to api.tripit.com? If so, those should work out of the > box > > > with > > > > no hassle and I recommend using them for ease of integration. If > not, > > > what > > > > library(s)/OS/platform are you using? We can try to help you debug > > > client > > > > code to a certain extent, but no promises. With an invalid signature > > > > error, the first thing I'd need from you for a particular failure > would > > > be > > > > the consumer key involved in the failure, the approximate date/time > (and > > > > your timezone) of the failure, and the exact oauth signature base > string > > > > value generated by your client oauth request generation code.
> > > > /thor
> > > > On Mon, Feb 27, 2012 at 2:28 AM, Liyan Zhao < > liyan.z...@openjawtech.com > > > >wrote:
> > > > > Hi,
> > > > > I'm really stuck, could anyone shed light on this?
> > > > > > Any idea why TripIt thinks it's invalid?
> > > > > > Cheers, > > > > > > Liyan
> > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "TripIt API" group. > > > > > To post to this group, send email to api_tripit@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > > api_tripit+unsubscribe@googlegroups.com. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/api_tripit?hl=en.
> > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "TripIt API" group. > > > To post to this group, send email to api_tripit@googlegroups.com. > > > To unsubscribe from this group, send email to > > > api_tripit+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/api_tripit?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "TripIt API" group. > To post to this group, send email to api_tripit@googlegroups.com. > To unsubscribe from this group, send email to > api_tripit+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/api_tripit?hl=en.