Skip to main content

Pickrr order placing, order Cancellation and order tracking api

Project description

Pickrr Python API

Pickrr order placing, order Cancellation and order tracking api

Installation:

  • Open the terminal and write:

    $ pip install pickrr

How to use:

  • First setup the auth-token:

    $ from pickrr.session import Session
    $ Session.setup("auth-token")

    EXAMPLE:

    $ from pickrr.session import Session
    $ Session.setup("94539823sd342d5453224")
  • For placing order:

    $ from pickrr.placeorder import PlaceOrder
    $ PlaceOrder.placeorder(item_name,from_name,from_phone_number,from_pincode,
      from_address,to_name,to_phone_number,to_pincode,to_address,cod_amount,
      client_order_id,client_other_id)

    for prepaid pass cod_amount=0.0, and order_id and client_other_id are optional

    EXAMPLE:

    $ from pickrr.placeorder import PlaceOrder
    $ PlaceOrder.placeorder(item_name = "ITEM NAME",from_name = "NAME",
      from_phone_number="9999999999",from_pincode = "110023",
      from_address= "FULL ADDRESS",to_name = "TO NAME",to_phone_number ="9898989898",
      to_pincode = "110045",to_address = "TO ADDRESS",cod_amount = "123",client_order_id = "345345",
      client_other_id = "32")

    RETURN:

    {"pickrr_phone_number": "+91-9818197991", "err": null, "order_id": "109124", "to_notify": false,
    "order_from_city": "NEW DELHI", "item_name": "test", "user_email": "h@pickrr.com",
    "tracking_id": "90410810064184", "pickrr_name": "Sahil Goyal", "order_pk": 108100,
     "order_service_used": "Standard", "order_to_city": "NEW DELHI"}
  • For Cancel the order:

    $ from pickrr.cancelorder import CancelOrder
    $ CancelOrder.cancelorder(order_id)

    EXAMPLE:

    $ from pickrr.cancelorder import CancelOrder
    $ CancelOrder.cancelorder(order_id="109124")

    RETURN:

    $ {"err": null}
  • For order tracking:

    $ from pickrr.trackorder import TrackOrder
    $ TrackOrder.trackorder(tracking_id)

    EXAMPLE:

    $ from pickrr.trackorder import TrackOrder
    $ TrackOrder.trackorder(tracking_id="45323232342")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pickrr-0.5.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file pickrr-0.5.tar.gz.

File metadata

  • Download URL: pickrr-0.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pickrr-0.5.tar.gz
Algorithm Hash digest
SHA256 d6109ffbd781d99cf690ca2dd4d1b70f02ea6b1cf5a373f1f68839ef60d0d7ac
MD5 d97829332fd45c951ed0dcbee36a0846
BLAKE2b-256 8ca3de5ed888596fd1697614bab824f25fd3023ef8cf4f5c6f85e6e6b75e04c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page