Skip to content

Commit c817f3b

Browse files
committed
New documentation 📖
1 parent ae092b5 commit c817f3b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/create_label_from_rate_id_example.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Please see [our docs](https://www.shipengine.com/docs/labels/create-from-rate/)
66

77
Input Parameters
88
----------------
9-
The `create_label_from_rate` method accepts a valid `rate_id` and a dictionary of label params that
9+
The `create_label_from_rate_id` method accepts a valid `rate_id` and a dictionary of label params that
1010
will dictate the label display and level of verification.
1111
```python
1212
params = {
@@ -20,7 +20,7 @@ params = {
2020

2121
Output
2222
------
23-
The `create_label_from_rate` method returns a shipping label that corresponds to the
23+
The `create_label_from_rate_id` method returns a shipping label that corresponds to the
2424
shipping and rate details encapsulated in the `rate_id` passed in.
2525

2626
Example:
@@ -33,7 +33,7 @@ from shipengine import ShipEngine
3333
from shipengine.errors import ShipEngineError
3434

3535

36-
def create_label_from_rate_demo():
36+
def create_label_from_rate_id_demo():
3737
api_key = os.getenv("SHIPENGINE_API_KEY")
3838

3939
shipengine = ShipEngine(
@@ -48,19 +48,22 @@ def create_label_from_rate_demo():
4848
"label_download_type": "url",
4949
"display_scheme": "label",
5050
}
51-
result = shipengine.create_label_from_rate_id(
51+
result = shipengine.create_label_from_rate_id_id(
5252
rate_id="se-799373193", params=params
5353
)
5454
print("::SUCCESS::")
5555
p.pprint(result)
5656
except ShipEngineError as err:
5757
print("::ERROR::")
5858
print(err.to_json())
59+
60+
61+
create_label_from_rate_id_demo()
5962
```
6063

6164
Example Output:
6265
===============
63-
- Successful `create_label_from_rate()` result.
66+
- Successful `create_label_from_rate_id()` result.
6467
```python
6568
{
6669
"batch_id": "",

0 commit comments

Comments
 (0)