> 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.
> 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.
> > > > To get an access token, I've generated a request like below:
> > >https://api.tripit.com/oauth/request_token?oauth_signature_method=HMA...
> > > > However TripIt responded with :
> > > > <Response>
> > > > <Error>
> > > > <code>401</code>
> > > > <detailed_error_code>104.1</detailed_error_code>
> > > > <description>invalid signature</description>
> > > > </Error>
> > > > </Response>
> > > > I've independently verified that the signature I'm sending is correct
> > > > by using this tool:http://developer.netflix.com/resources/OAuthTest
> > > > 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.