You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possbile for the integration app to receive the notification from the tripit? #277
I have developed an app that TripIt users can authorize to read the itinerary data from the TripIt. I want to know if it's possible for the app to receive the notification when any unfiled item is created under the user's account. If this notification function exists, is there any detailed documentation or tutorial for it? thanks
Thanks, but it seems the current notification can only notify the change of the trip object.
type - The type of the object that was changed. Currently, this is always "trip". In the future additional types may be available, so this parameter should be checked.
But I expect to monitor the creation of unfiled items so that I can make take action on it. Do you know if it's supported?
Notification on unfiled items alone is not supported. You can track an unfiled item when a trip gets created out of it or a trip item moves into an unfiled item.
thanks, Julia. That's not exactly what I want. I want to receive the notification once the unfiled item is created, and then my app knows it can fetch new unfiled items from the TripIt platform, parse them again using its own logic and generate the expected travel objects. This is mainly for supporting some cases that TripIt cannot handle yet. Anyway, thanks for your information.
I have another question regards the unfiled item if you don't mind I ask it directly in this thread.
When I fetch the unfiled item, usually It returns a list of NoteObjects and each NoteObject contains the property "relative_url". like below
But when I access the corresponding "relative_url" (https://api.tripit.com/trip_item/show/id/3706028873), It returns the response 404 "Page Not found". Could you let me know how I suppose to access this relative_url?
Activity
julsat commentedon May 31, 2022
Hi Yan,
you can find notification api documentation here: https://tripit.github.io/api/doc/v1/notification.html
-Julia
ryzhang commentedon Jun 1, 2022
Thanks, but it seems the current notification can only notify the change of the trip object.
But I expect to monitor the creation of unfiled items so that I can make take action on it. Do you know if it's supported?
julsat commentedon Jun 2, 2022
Notification on unfiled items alone is not supported. You can track an unfiled item when a trip gets created out of it or a trip item moves into an unfiled item.
ryzhang commentedon Jun 2, 2022
thanks, Julia. That's not exactly what I want. I want to receive the notification once the unfiled item is created, and then my app knows it can fetch new unfiled items from the TripIt platform, parse them again using its own logic and generate the expected travel objects. This is mainly for supporting some cases that TripIt cannot handle yet. Anyway, thanks for your information.
I have another question regards the unfiled item if you don't mind I ask it directly in this thread.
When I fetch the unfiled item, usually It returns a list of NoteObjects and each NoteObject contains the property "relative_url". like below
But when I access the corresponding "relative_url" (https://api.tripit.com/trip_item/show/id/3706028873), It returns the response 404 "Page Not found". Could you let me know how I suppose to access this relative_url?
julsat commentedon Jun 2, 2022
you can use this relative url to access your item in webapp. in your case, https://www.tripit.com/trip_item/show/id/3706028873 should display details of your unfiled item.
ryzhang commentedon Jun 3, 2022
thanks. Julia.