FlowerPower.ApiServer

Generic server for calling the flower power api and caching the results based on the date range that has been used on previous requests.

Summary

Functions

Calls the server the api that checks to see if the service has been called with the same parameters before; if it has, it gets the garden data from the dictionary

This function handles calling the flower power api service

Functions

call_api(server, api_parameters)

Calls the server the api that checks to see if the service has been called with the same parameters before; if it has, it gets the garden data from the dictionary

The api parameters is a tuple in the following format:

{credentials, date_from, date_to}

The date_from and date_to are timex dates
handle_call(msg, from, state)

This function handles calling the flower power api service

start_link(opt \\ [])