Skip to content

Commit ae092b5

Browse files
committed
New documentation 📖
1 parent 4550dc1 commit ae092b5

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,18 @@ shipengine = ShipEngine(
5252

5353
Methods
5454
-------
55-
- [validate_address](./docs/addresses_validate_example.md "Validate Address method documentation") - Indicates whether the provided address is valid. If the
55+
- [addresses_validate](./docs/addresses_validate_example.md) - Indicates whether the provided address is valid. If the
5656
address is valid, the method returns a normalized version of the address based on the standards of the country in
5757
which the address resides.
58-
- [normalize_address](./docs/normalize_address_example.md "Normalize Address method documentation") - Returns a normalized, or standardized, version of the
59-
address. If the address cannot be normalized, an error is returned.
60-
- [track_package](./docs/track_package_example.md "Track Package method documentation") - Track a package by `packageId` or by `carrierCode` and `trackingNumber`. This method returns
58+
- [create_label_from_rate_id](./docs/create_label_from_rate_id_example.md) - Purchase a label by `rate_id`. When using the `get_rates_from_shipment` method, you can use one of the returned `rate_id` values with this method to purchase a label against a given rate.
59+
- [create_label_from_shipment](./docs/create_label_from_shipment.md) - Purchase a label created from shipment details.
60+
- [get_rates_from_shipment](./docs/get_rates_from_shipment_example.md) - Fetch rates from shipment details to shop the best shipping rate for your package.
61+
- [list_carriers](./docs/list_carriers_example.md) - Lists the carrier accounts connected to your SHipEngine account.
62+
- [track_package_by_label_id](./docs/track_package_by_label_id_example.md) - Track a package by `label_id`, the preferred way to track shipments if you crate shipping labels using ShipEngine. This method returns
6163
the all tracking events for a given shipment.
64+
- [track_package_by_carrier_code_and_tracking_number](./docs/track_package_by_carrier_code_and_tracking_number_example.md) - Track a package by `carrier_code` and `tracking_number`. This method returns
65+
the all tracking events for a given shipment.
66+
- [void_label_by_label_id](./docs/void_label_by_label_id_example.md) - Void a shipping label you created using ShipEngine by its `label_id`. This method returns an object that indicates the status of the void label request.
6267

6368
Class Objects
6469
-------------
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Create Label From Rate Documentation
2-
====================================
1+
Create Label From Rate ID Documentation
2+
=======================================
33
When retrieving rates for shipments using the `get_rates_from_shipment` method, the returned information contains a `rate_id` property that can be used to purchase a label without having to refill in the shipment information repeatedly.
44

55
Please see [our docs](https://www.shipengine.com/docs/labels/create-from-rate/) to learn more about creating shipping labels from rates.
@@ -25,6 +25,7 @@ shipping and rate details encapsulated in the `rate_id` passed in.
2525

2626
Example:
2727
========
28+
2829
```python
2930
import os
3031

@@ -47,7 +48,7 @@ def create_label_from_rate_demo():
4748
"label_download_type": "url",
4849
"display_scheme": "label",
4950
}
50-
result = shipengine.create_label_from_rate(
51+
result = shipengine.create_label_from_rate_id(
5152
rate_id="se-799373193", params=params
5253
)
5354
print("::SUCCESS::")

shipengine/shipengine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, config: Union[str, Dict[str, Any], ShipEngineConfig]) -> None
2929
elif type(config) is dict:
3030
self.config = ShipEngineConfig(config)
3131

32-
def create_label_from_rate(
32+
def create_label_from_rate_id(
3333
self, rate_id: str, params: Dict[str, Any], config: Union[str, Dict[str, Any]] = None
3434
) -> Dict[str, Any]:
3535
"""

0 commit comments

Comments
 (0)