-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update api urls & add user-agent header #3
base: main
Are you sure you want to change the base?
Conversation
Does this work? Trying to test the endpoint through Postman but Incapsula blocks any results |
It's working for me, did you modify the User-Agent header like I did on these changes? Make sure Postman is not sending its own value there. |
I did, i have no idea of what I'm doing wrong. I'm going to send my cURL request here. I would appreciate it if you could help me. I have 0 experience with Go since i mainly develop with Java/Python curl ^"https://api-air-flightsearch-green.smiles.com.br/v1/airlines/search?cabin=ALL&originAirportCode=FLN&destinationAirportCode=GRU&departureDate=2024-10-16&memberNumber=&adults=1&children=0&infants=0&forceCongener=false&cookies=_gid^%^3Dundefined^%^3B^" ^ |
Try importing mine on Postman curl --location 'https://api-air-flightsearch-green.smiles.com.br/v1/airlines/search?adults=1&cabinType=all&children=0¤cyCode=ARS&departureDate=2024-09-20&destinationAirportCode=EZE&forceCongener=true&infants=0&isFlexibleDateChecked=false&originAirportCode=PUJ&r=ar&tripType=2' |
Hello. |
Minor changes have been made to make the code work again.