Trait wolfram_alpha::WolframAlphaRequestSender [] [src]

pub trait WolframAlphaRequestSender {
    fn send<'a>(
        &'a self,
        method: &str,
        params: HashMap<&'a str, &'a str>
    ) -> Box<Future<Item = String, Error = HttpRequestError> + 'a>; fn send_authed<'a>(
        &'a self,
        method: &str,
        app_id: &'a str,
        params: HashMap<&'a str, &'a str>
    ) -> Box<Future<Item = String, Error = HttpRequestError> + 'a> { ... } }

Functionality for sending requests to Wolfram|Alpha via HTTP.

Should be implemented for clients to send requests to Wolfram|Alpha.

Required Methods

Performs an API call to Wolfram|Alpha.

Takes a map of parameters which get appended to the request as query parameters. Returns the response body string.

Provided Methods

Make an API call to Wolfram|Alpha that contains the configured App ID.

Takes a map of parameters which get appended to the request as query parameters. Returns the response body string.

Implementors