Adding tracking information to shipment (Magento 1)

Want to add tracking information to an existing Magento shipment? Here is the code you can use:

Getting an orders tracking information (Magento 1)

Using the following code, you can obtain the tracking information of a Magento order.