<jupyter_start><jupyter_text>GET Print Jobs<jupyter_code># apiclient.get_print_jobs()<jupyter_output><empty_output><jupyter_text>GET Print Shipping Options<jupyter_code>apiclient.get_print_shipping_options(iso_country_code='ca')<jupyter_output><empty_output><jupyter_text>Create print job<jupyter_code>book = {
   "external_id": "test-line-item",
   "title": "My Book",
   "cover_source_url": "https://www.dropbox.com/s/7bv6mg2tj0h3l0r/lulu_trade_perfect_template.pdf?dl=1&raw=1",
   "interior_source_url": "https://www.dropbox.com/s/r20orb8umqjzav9/lulu_trade_interior_template-32.pdf?dl=1&raw=1",
   "pod_package_id": "0600X0900BWSTDPB060UW444MXX",
   "quantity": 1,
}
books = [book]  # a print job can include multiple books

address = {
   "name": "<NAME>",
   "street1": "Street address 1",
   "street2": "(optional) street address second line",
   "city": "L\u00fcbeck",
   "postcode": "H1A 2A1",
   "state_code": "QC",
   "country_code": "CA",
   "phone_number": "844-212-0689",
}


apiclient.create_print_job(address, books, shipping_level="GROUND", external_id="test-print-job")


data = apiclient.get_print_jobs()
import pprint
pprint.pprint(data)<jupyter_output>[{'child_job_ids': [],
  'contact_email': '<EMAIL>',
  'costs': {'currency': None,
            'line_item_costs': None,
            'shipping_cost': None,
            'total_cost_excl_tax': None,
            'total_cost_incl_tax': None,
            'total_tax': None},
  'date_created': '2021-03-08T20:03:50.808926Z',
  'date_modified': '2021-03-08T20:03:57.019644Z',
  'dropship_profile_id': '7e914864-78e4-4fae-bf0c-a10574143885',
  'estimated_shipping_dates': None,
  'external_id': 'test-print-job',
  'id': 19740,
  'line_items': [{'external_id': 'test-line-item',
                  'id': 34904,
                  'order_line_item_id': None,
                  'pod_package_id': '0550X0850BWSTDPB060UW444GXX',
                  'printable_id': None,
                  'printable_normalization': {'cover': {'job_id': 34090,
                                                        'normalized_file': None,
                                                        'page_count': None,
      [...]
StarcoderdataJupyterStructuredCleanDedup