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

Make the Base URL for the API configurable #4

Closed
Zarthus opened this Issue Jan 2, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@Zarthus
Copy link
Owner

Zarthus commented Jan 2, 2019

We currently hardcode all URLs, we should provide a configurable Base URL.

Examples:

let mut url = String::from("https://opentdb.com/api.php");

.get("https://opentdb.com/api_token.php?command=request")

let mut url: String = String::from("https://opentdb.com/api_token.php?command=reset&token=");

@Zarthus Zarthus added this to the v1.0.0 milestone Jan 2, 2019

@Zarthus Zarthus added the enhancement label Jan 2, 2019

@Zarthus Zarthus closed this in 80b3866 Jan 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment