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
import * as SygicTravelSDK from 'sygic-travel-js-sdk'; const apiUrl: string = 'https://api.sygictravelapi.com/1.0/en/'; const clientKey: string = 'CLIENT_KEY'; // Get your client key at https://travel.sygic.com/b2b/api-key const stSDK: SygicTravelSDK.StSDK = SygicTravelSDK.create(apiUrl, clientKey);
When I import from 'sygic-travel-js-sdk' to create an instance , and then sygic.collections.getCollections({ containedPlaceIds: ["city:4395"] }, false,"")
the params will not pass to the request.
Following is the screenshot
And then I try import * as SygicTravelSDK from 'sygic-travel-js-sdk/src/StSDK'; It works!
The text was updated successfully, but these errors were encountered:
import * as SygicTravelSDK from 'sygic-travel-js-sdk';
const apiUrl: string = 'https://api.sygictravelapi.com/1.0/en/';
const clientKey: string = 'CLIENT_KEY'; // Get your client key at https://travel.sygic.com/b2b/api-key
const stSDK: SygicTravelSDK.StSDK = SygicTravelSDK.create(apiUrl, clientKey);
When I import from 'sygic-travel-js-sdk' to create an instance , and then
sygic.collections.getCollections({ containedPlaceIds: ["city:4395"] }, false,"")
the params will not pass to the request.
Following is the screenshot
And then I try
import * as SygicTravelSDK from 'sygic-travel-js-sdk/src/StSDK';
It works!The text was updated successfully, but these errors were encountered: