Skip to content

Commit

Permalink
Update request_tracking_codes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
osantana committed Apr 25, 2017
1 parent adef21d commit 368ba16
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions samples/request_tracking_codes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Copyright 2017 Adler Medrado
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


from ..correios.client import Correios
from ..correios.models.user import User, Service

Expand All @@ -8,5 +23,6 @@ def get_tracking_codes(service, quantity):
tracking_codes = client.request_tracking_codes(olist_user, Service.get(service), quantity=quantity)
print(tracking_codes)


get_tracking_codes('41068', 1) # Request 1 PAC Tracking Code
get_tracking_codes('40068', 1) # Request 1 SEDEX Tracking Code

0 comments on commit 368ba16

Please sign in to comment.