JSON Parameters¶
Most functions within thus wrapper will take a parameter (typically called “parameters”).
The value is a modifier/qualifier to the function call that is being made, and will affect the results of that function.
The value should be expressed as a valid JSON payload, such as the following:
{
"status":"active",
"limit":3
}
An example of this would be:
parameters = {"status":"active", "limit":3} # JSON payload indicating only 3 active
# capsules should be returned
timeOut = 2 # wait 2 seaconds before recording a timeout
capsules = spacexpython.capsules(parameters,timeOut)
print(capsule)
Note
As of version 1.0.0.alpha4, no parameter validation takes place, therefore incorrect parameters will produce unknown and unpredictable effects. Please check all spelling and validity of parameters prior to use.