File tree Expand file tree Collapse file tree 2 files changed +133
-3
lines changed Expand file tree Collapse file tree 2 files changed +133
-3
lines changed Original file line number Diff line number Diff line change 39
39
"has_sale_oct " ,
40
40
"has_sale_nov " ,
41
41
"has_sale_dec " ,
42
+ "geocode_start " ,
43
+ "geocode_end " ,
44
+ "distance " ,
42
45
"tour_code " ,
43
46
"from_price " ,
44
47
"from_price_display " ,
98
101
"has_sale_oct " ,
99
102
"has_sale_nov " ,
100
103
"has_sale_dec " ,
104
+ "geocode_start " ,
105
+ "geocode_end " ,
106
+ "distance " ,
101
107
"tour_code " ,
102
108
"from_price " ,
103
109
"from_price_display " ,
134
140
"channel->lang " ,
135
141
"channel->home_url " ,
136
142
"channel->home_url_tracked "
143
+ ),
144
+
145
+ // Tour Search (all channels)
146
+ "/p/tours/search.xml " => array (
147
+ "tour_id " ,
148
+ "channel_id " ,
149
+ "tour_name " ,
150
+ "has_sale " ,
151
+ "has_f " ,
152
+ "has_d " ,
153
+ "has_h " ,
154
+ "has_sale_jan " ,
155
+ "has_sale_feb " ,
156
+ "has_sale_mar " ,
157
+ "has_sale_apr " ,
158
+ "has_sale_may " ,
159
+ "has_sale_jun " ,
160
+ "has_sale_jul " ,
161
+ "has_sale_aug " ,
162
+ "has_sale_sep " ,
163
+ "has_sale_oct " ,
164
+ "has_sale_nov " ,
165
+ "has_sale_dec " ,
166
+ "tour_code " ,
167
+ "from_price " ,
168
+ "from_price_display " ,
169
+ "from_price_jan " ,
170
+ "from_price_feb " ,
171
+ "from_price_mar " ,
172
+ "from_price_apr " ,
173
+ "from_price_may " ,
174
+ "from_price_jun " ,
175
+ "from_price_jul " ,
176
+ "from_price_aug " ,
177
+ "from_price_sep " ,
178
+ "from_price_oct " ,
179
+ "from_price_nov " ,
180
+ "from_price_dec " ,
181
+ "sale_currency " ,
182
+ "thumbnail_image " ,
183
+ "country " ,
184
+ "duration_desc " ,
185
+ "duration " ,
186
+ "location " ,
187
+ "summary " ,
188
+ "shortdesc " ,
189
+ "available " ,
190
+ "tour_url " ,
191
+ "tour_url_tracked " ,
192
+ "book_url " ,
193
+ "tourleader_type " ,
194
+ "grade " ,
195
+ "accomrating " ,
196
+ "product_type " ,
197
+ "channel->channel_name " ,
198
+ "channel->logo_url " ,
199
+ "channel->lang " ,
200
+ "channel->home_url " ,
201
+ "channel->home_url_tracked "
202
+ ),
203
+
204
+ // Tour Show
205
+ "/c/tour/show.xml " => array (
206
+ "tour_id " ,
207
+ "channel_id " ,
208
+ "tour_name " ,
209
+ "has_sale " ,
210
+ "has_f " ,
211
+ "has_d " ,
212
+ "has_h " ,
213
+ "has_sale_jan " ,
214
+ "has_sale_feb " ,
215
+ "has_sale_mar " ,
216
+ "has_sale_apr " ,
217
+ "has_sale_may " ,
218
+ "has_sale_jun " ,
219
+ "has_sale_jul " ,
220
+ "has_sale_aug " ,
221
+ "has_sale_sep " ,
222
+ "has_sale_oct " ,
223
+ "has_sale_nov " ,
224
+ "has_sale_dec " ,
225
+ "quantity_rule " ,
226
+ "geocode_start " ,
227
+ "geocode_end " ,
228
+ "tour_code " ,
229
+ "from_price " ,
230
+ "from_price_display " ,
231
+ "from_price_jan " ,
232
+ "from_price_feb " ,
233
+ "from_price_mar " ,
234
+ "from_price_apr " ,
235
+ "from_price_may " ,
236
+ "from_price_jun " ,
237
+ "from_price_jul " ,
238
+ "from_price_aug " ,
239
+ "from_price_sep " ,
240
+ "from_price_oct " ,
241
+ "from_price_nov " ,
242
+ "from_price_dec " ,
243
+ "sale_currency " ,
244
+ "thumbnail_image " ,
245
+ "country " ,
246
+ "duration_desc " ,
247
+ "duration " ,
248
+ "location " ,
249
+ "summary " ,
250
+ "shortdesc " ,
251
+ "longdesc " ,
252
+ "itinerary " ,
253
+ "exp " ,
254
+ "pick " ,
255
+ "extras " ,
256
+ "rest " ,
257
+ "available " ,
258
+ "dep_code_style " ,
259
+ "tour_url " ,
260
+ "tour_url_tracked " ,
261
+ "book_url " ,
262
+ "tourleader_type " ,
263
+ "grade " ,
264
+ "accomrating " ,
265
+ "product_type " ,
266
+ "images "
137
267
)
138
268
);
139
269
Original file line number Diff line number Diff line change 39
39
if (array_key_exists ($ api_url , $ allowed_fields )) {
40
40
41
41
$ tourcms = new TourCMS ($ marketplace_account_id , $ api_private_key , "simplexml " );
42
-
43
- $ result = $ tourcms ->request ($ api_url , $ channel );
44
-
42
+
43
+ $ result = $ tourcms ->request ($ api_url. $ qs , $ channel );
44
+
45
45
$ error = $ result ->error ;
46
46
47
47
$ string = '{
You can’t perform that action at this time.
0 commit comments