Payload Information¶
This group of API calls will enable the retrieval of data about the various payloads that SpaceX has (or will be) responsible for shipping. ALL these calls can be given a set of parameters, with which to modify the response. Like all functions in this module, the API parameters must be given as a JSON payload such as can be seen here.
All Payloads¶
payloads = spacexpython.payloads.payloads(parameters,timeOut)
print(payloads)
Parameters:
Name | Purpose | Mandatory | Default |
---|---|---|---|
parameters | JSON list of URL qualifiers in the form {“status”:”active”,”limit”:3 ……etc |
N | |
timeOut | Number of seconds to wait until a timeout | N | 1 |
Specific Payload¶
payload = spacexpython.payloads.one(payload_id,parameters,timeOut)
print(payload)
Parameters:
Name | Purpose | Mandatory | Default |
---|---|---|---|
payload_id | ID of the payload | Y | |
parameters | JSON list of URL qualifiers in the form {“status”:”active”,”limit”:3 ……etc |
N | |
timeOut | Number of seconds to wait until a timeout | N | 1 |
[Ref9] | This time-lapse animation shows NICER being extracted from the SpaceX Dragon trunk on June 11, 2017 |