File tree Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,8 @@ Get JSON and Dictionary Response
196196
197197.. code-block :: python
198198
199- from fedex.tools.response_tools import sobject_to_dict
200- from fedex.tools.response_tools import sobject_to_json
199+ from fedex.tools.conversion import sobject_to_dict
200+ from fedex.tools.conversion import sobject_to_json
201201 response_dict = sobject_to_dict(shipment.response)
202202 response_json = sobject_to_json(shipment.response)
203203
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ class can handle up to 100 addresses for validation.
6868
6969# This will convert the response to a python dict object. To
7070# make it easier to work with.
71- # from fedex.tools.response_tools import basic_sobject_to_dict
71+ # from fedex.tools.conversion import basic_sobject_to_dict
7272# print(basic_sobject_to_dict(avs_request.response))
7373
7474# This will dump the response data dict to json.
75- # from fedex.tools.response_tools import sobject_to_json
75+ # from fedex.tools.conversion import sobject_to_json
7676# print(sobject_to_json(avs_request.response))
7777
7878# Overall end result of the query
Original file line number Diff line number Diff line change 150150
151151# This will convert the response to a python dict object. To
152152# make it easier to work with. Also see basic_sobject_to_dict, it's faster but lacks options.
153- # from fedex.tools.response_tools import sobject_to_dict
153+ # from fedex.tools.conversion import sobject_to_dict
154154# response_dict = sobject_to_dict(shipment.response)
155155# response_dict['CompletedShipmentDetail']['ShipmentDocuments'][0]['Parts'][0]['Image'] = ''
156156# print(response_dict) # Image is empty string for display purposes.
157157
158158# This will dump the response data dict to json.
159- # from fedex.tools.response_tools import sobject_to_json
159+ # from fedex.tools.conversion import sobject_to_json
160160# print(sobject_to_json(shipment.response))
161161
162162# Here is the overall end result of the query.
Original file line number Diff line number Diff line change 179179
180180# This will convert the response to a python dict object. To
181181# make it easier to work with. Also see basic_sobject_to_dict, it's faster but lacks options.
182- # from fedex.tools.response_tools import sobject_to_dict
182+ # from fedex.tools.conversion import sobject_to_dict
183183# response_dict = sobject_to_dict(shipment.response)
184184# response_dict['CompletedShipmentDetail']['CompletedPackageDetails'][0]['Label']['Parts'][0]['Image'] = ''
185185# print(response_dict) # Image is empty string for display purposes.
186186
187187# This will dump the response data dict to json.
188- # from fedex.tools.response_tools import sobject_to_json
188+ # from fedex.tools.conversion import sobject_to_json
189189# print(sobject_to_json(shipment.response))
190190
191191# Here is the overall end result of the query.
Original file line number Diff line number Diff line change 4343
4444# This will convert the response to a python dict object. To
4545# make it easier to work with.
46- # from fedex.tools.response_tools import basic_sobject_to_dict
46+ # from fedex.tools.conversion import basic_sobject_to_dict
4747# print(basic_sobject_to_dict(del_request.response))
4848
4949# This will dump the response data dict to json.
50- # from fedex.tools.response_tools import sobject_to_json
50+ # from fedex.tools.conversion import sobject_to_json
5151# print(sobject_to_json(del_request.response))
5252
5353# Here is the overall end result of the query.
Original file line number Diff line number Diff line change 118118
119119# This will convert the response to a python dict object. To
120120# make it easier to work with.
121- # from fedex.tools.response_tools import basic_sobject_to_dict
121+ # from fedex.tools.conversion import basic_sobject_to_dict
122122# print(basic_sobject_to_dict(rate_request.response))
123123
124124# This will dump the response data dict to json.
125- # from fedex.tools.response_tools import sobject_to_json
125+ # from fedex.tools.conversion import sobject_to_json
126126# print(sobject_to_json(rate_request.response))
127127
128128# Here is the overall end result of the query.
Original file line number Diff line number Diff line change 8686
8787# This will convert the response to a python dict object. To
8888# make it easier to work with.
89- # from fedex.tools.response_tools import basic_sobject_to_dict
89+ # from fedex.tools.conversion import basic_sobject_to_dict
9090# print(basic_sobject_to_dict(location_request.response))
9191
9292# This will dump the response data dict to json.
93- # from fedex.tools.response_tools import sobject_to_json
93+ # from fedex.tools.conversion import sobject_to_json
9494# print(sobject_to_json(location_request.response))
9595
9696# Here is the overall end result of the query.
You can’t perform that action at this time.
0 commit comments