.. image:: ../images/SpaceX_factory_Merlin_engine.jpg :scale: 12 % Source: [Ref2]_ Core Information ******************* This group of API calls will enable the retrieval of core data. In SpaceX terms, a "core" is defined as a rocket motor. ALL core 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 :doc:`here <./useful/jsonpayload>`. All Cores ````````` .. code-block:: python cores = spacexpython.cores.cores(parameters,timeOut) print(core) Parameters: .. tabularcolumns:: |1|1|C|C| +------------+-------------------------------------------+-----------+---------+ | Name | Purpose | Mandatory | Default | +============+===========================================+===========+=========+ | parameters | JSON list of URL qualifiers in the form | N | | + + + + + | | {"status":"active","limit":3 ......etc | | | +------------+-------------------------------------------+-----------+---------+ | timeOut | Number of seconds to wait until a timeout | N | 1 | +------------+-------------------------------------------+-----------+---------+ `Valid parameters `_ Specific Core ````````````` .. code-block:: python core = spacexpython.cores.one(core_id,parameters,timeOut) print(core) Parameters: .. tabularcolumns:: |1|1|C|C| +------------+-------------------------------------------+-----------+---------+ | Name | Purpose | Mandatory | Default | +============+===========================================+===========+=========+ | core_id | ID of the core | Y | | +------------+-------------------------------------------+-----------+---------+ | parameters | JSON list of URL qualifiers in the form | N | | + + + + + | | {"status":"active","limit":3 ......etc | | | +------------+-------------------------------------------+-----------+---------+ | timeOut | Number of seconds to wait until a timeout | N | 1 | +------------+-------------------------------------------+-----------+---------+ `Valid parameters `_ Upcoming Cores `````````````` .. code-block:: python upcoming_cores = spacexpython.cores.upcoming(parameters,timeOut) print(upcoming_cores) Parameters: .. tabularcolumns:: |1|1|C|C| +------------+-------------------------------------------+-----------+---------+ | Name | Purpose | Mandatory | Default | +============+===========================================+===========+=========+ | parameters | JSON list of URL qualifiers in the form | N | | + + + + + | | {"status":"active","limit":3 ......etc | | | +------------+-------------------------------------------+-----------+---------+ | timeOut | Number of seconds to wait until a timeout | N | 1 | +------------+-------------------------------------------+-----------+---------+ `Valid parameters `_ Past Cores `````````` .. code-block:: python past_cores = spacexpython.cores.past(parameters,timeOut) print(past_cores) Parameters: .. tabularcolumns:: |1|1|C|C| +------------+-------------------------------------------+-----------+---------+ | Name | Purpose | Mandatory | Default | +============+===========================================+===========+=========+ | parameters | JSON list of URL qualifiers in the form | N | | + + + + + | | {"status":"active","limit":3 ......etc | | | +------------+-------------------------------------------+-----------+---------+ | timeOut | Number of seconds to wait until a timeout | N | 1 | +------------+-------------------------------------------+-----------+---------+ `Valid parameters `_ .. [Ref2] By Steve Jurvetson from Menlo Park, USA - Flickr: Merlin Engine, CC BY 2.0 - One of nine Merlin engines used in the Falcon 9 booster.