Comments (2)
Is this issue still there?
from expedia.
Since it's a method and not a variable, how could this be an issue?
# Creates a Signature for Expedia using MD5 Checksum Auth.
# Shared and Api keys are required for Signature along with the current utc time.
def signature
if Expedia.cid && Expedia.api_key && Expedia.shared_secret
Digest::MD5.hexdigest(Expedia.api_key + Expedia.shared_secret + Time.now.utc.to_i.to_s)
else
raise Expedia::AuthCredentialsError, "cid, api_key and shared_secret are required for Expedia Authentication."
end
end
If I test this in the console, this rotates:
[2] pry(main)> Expedia::HTTPService.signature
=> "43e1bf4aca424e16c37f971dfc6f0c80"
[3] pry(main)> Expedia::HTTPService.signature
=> "43e1bf4aca424e16c37f971dfc6f0c80"
[4] pry(main)> Expedia::HTTPService.signature
=> "fa29bdf7bb0a357dfae4bd74279f0599"
[5] pry(main)> Expedia::HTTPService.signature
=> "fa29bdf7bb0a357dfae4bd74279f0599"
[6] pry(main)> Expedia::HTTPService.signature
=> "fa29bdf7bb0a357dfae4bd74279f0599"
[7] pry(main)> Expedia::HTTPService.signature
=> "71c13ec6440a11896e87cb50e926f933"
[8] pry(main)> Expedia::HTTPService.signature
=> "71c13ec6440a11896e87cb50e926f933"
[9] pry(main)> Expedia::HTTPService.signature
=> "71c13ec6440a11896e87cb50e926f933"
[10] pry(main)> Expedia::HTTPService.signature
=> "71c13ec6440a11896e87cb50e926f933"
[11] pry(main)> Expedia::HTTPService.signature
=> "9ee5c0c3b30392b128c74c01b87214d2"
from expedia.
Related Issues (11)
- How to send a post request for get_list? HOT 1
- Issue with get_static_reservation method HOT 5
- Is there a way to get the current price?
- formatting room group object HOT 3
- dev mode url HOT 3
- Code not working HOT 2
- #<Expedia::APIError: Expedia::APIError> HOT 5
- incorrect EAN endpoint
- Use of attribute reader
- EAN RAPID Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expedia.