The oDesk API does not give a concrete example for how to use the milestones parameter for the send_client_offer function. I've tried using a python dictionary, but receive an error when I do so.
The documentation describes milestones as an array:
milestones[0][$key]`, ..., `milestones[N][$key]
But it's unclear how that should be implemented in the python library:
I've tried:
milestones = [{"milestone_description":"descrip", "deposit_amount":1,
"due_date":"03-15-2015"},{"milestone_description":"descrip2",
"deposit_amount":5, "due_date":"03-20-2015"}]
Output:
HTTP400BadRequestError: HTTP Error 400: Code 1: FP2 offers should have at least one milestone defined.