Zebra Technologies Corporation · NASDAQ:ZBRA
Zebra Technologies — Technical Presentation (2023)
20 slides from Zebra Technologies's technical presentation, 2023
Slide 1: Cloud Printing Made Simple
Cloud Printing Made Simple SendFileToPrinter – Cloud-based Label Printing API Steven Si Sr. Software Engineer 1
Slide 2: Agenda
Agenda • What is the SendFileToPrinter API? • What can the API do? • What does the API look like? • How to Get Started? • How to Enroll a Printer? • How to Use the API? • Print from Cloud Demo ZEBRA TECHNOLOGIES 2
Slide 3: What is the SendFileToPrinter API?
What is the SendFileToPrinter API? A unidirectional REST API • A REST API </> – Language & platform Agnostic Cloud App SendFileToPrinter API – Any programming language on any platform </> SendFileToPrinter API • Secured Connection Mobile App – SSL/TLS between the printer </> & Zebra Cloud SendFileTo
Slide 4: What can the SendFileToPrinter API do?
What can the SendFileToPrinter API do? Send any content defined in ZPL Programming Guide • Send any content defined in </> ZPL Programming Guide Cloud App SendFileToPrinter API – ZPL Formats – Fonts, Graphics, WiFi Certificates or </> Objects SendFileToPrinter API – Configuration Commands Mobile App
Slide 5: What does the API look like?
What does the API look like? https://developer.zebra.com/apis/sendfiletoprinter • A multipart/form-data HTTPS request • Header: – API Key (apikey) – Tenant account number (Tenant ID) • Request body – One or more printer serial numbers (sn) – One file to be sent to the printer (zpl_file) • Request UR
Slide 6: How to Get Started?
How to Get Started? Create an account & add the SendFileToPrinter plan(s) • Apply for a developer account at https://developer.zebra.com • Follow the instructions in Getting Started with Zebra Data Services guide to – Select the SendFileToPrinter (Free, PPC, or both) plan(s) – Add the plan(s) to you
Slide 7: How to Get Started? – cont.
How to Get Started? – cont. Verify the plan(s) added successfully • Verify the added plan(s) – Click on My Account -> Balance and plans – Verify the plans listed under Active & Future Purchased Plans section ZEBRA TECHNOLOGIES 7
Slide 8: How to Get Started? – cont.
How to Get Started? – cont. Create an app • Create an app – Click on My Account -> My Apps -> My Apps – Click on Add app • Give the app a name • Check-mark only one of the “Send File To Printer” plans under APIs list – Do not choose both PPC and Free plans, otherwise both plans get deducted from the
Slide 9: How to Get Started? – cont.
How to Get Started? – cont. Get the API Key • Click on My Account -> My Apps - > My Apps Direct link: https://developer.zebra.com/user/ me/apps • Open the app • The Consumer Key is the API Key – Copy & paste this API key into the REST request header API Key ZEBRA TECHNOLOGIES 9
Slide 10: How to Enroll a Printer? – cont.
How to Enroll a Printer? – cont. Send enrollment string to the printer • Use the send or send file function in Printer Setup Utility for Windows • Or, use the ZDesigner driver • Or, use the Printer Setup Utility for Android or iOS ZEBRA TECHNOLOGIES 10
Slide 11: How to Enroll a Printer?
How to Enroll a Printer? Register the printer with Zebra Cloud • Obtain Printer Enrollment String • Click on Data Services -> SendFileToPrinter • Click on MY DATA SERVICES -> DEVICES • Direct link: https://developer.zebra.com/my-devices • Click on Add Device button • Select Printer on the dropdown •
Slide 12: How to Enroll a Printer? – cont.
How to Enroll a Printer? – cont. Verify the Weblink connection • Retrive the Weblink log with the SGD ! U1 getvar "weblink" (Provided a newline at the end) • Watch for the following messages in the log for a successful enrollment. – [conn1.nn] Successfully connected – or – [conn2.nn] Successfully co
Slide 13: How to Enroll a Printer? – cont.
How to Enroll a Printer? – cont. Verify the Weblink connection via the My Devices • Click on Data Services -> MY DATA SERVICES->DEVICES – Direct link: https://developer.zebra.com/my- devices • Verify if the printer is listed ZEBRA TECHNOLOGIES 13
Slide 14: How to Use the SendFileToPrinter API?
How to Use the SendFileToPrinter API? For testing • SendFileToPrinter API Portal • Direct Link: https://developer.zebra.com/ apis/sendfiletoprinter • Postman • cURL ZEBRA TECHNOLOGIES 14
Slide 15: How to Use the SendFileToPrinter API? – cont. (Java)
How to Use the SendFileToPrinter API? – cont. Java with ZebraSftpMpBodyPublisher.java // Create URI from the URL of SendFileToPrinter API URI uri = URI.create("https://api.zebra.com/v2/devices/printers/send"); String sn = "XXZJJ174600974"; // Printer serial number example String apikey = "EvqdePLp2W
Slide 16: How to Use the SendFileToPrinter API? – cont. (JavaScript)
How to Use the SendFileToPrinter API? – cont. JavaScript with PrintFromCloud demo on GitHub // Call the SendFileToPrinter API to send the file function sendFileToPrinter(apiKey, tenant, fileToSend, serialNumbers) { var http = new XMLHttpRequest(); http.open("POST", "https://api.zebra.com/v2/devices/
Slide 17: Resources
Resources Documents & Demo • Use the SendFileToPrinter API for Your Cloud-Based Printing Needs (https://developer.zebra.com/blog/use-sendfiletoprinter-api-your-cloud-based-printing-needs) • Getting Started with Zebra Data Services (https://developer.zebra.com/docs/getting-started) • Printer Setup Gu
Slide 18: Print From Cloud Walkthrough
Print From Cloud Walkthrough JavaScript based demo • Send a file to printer • Template-based label print – Badge • Template-based receipt print – Shopping Receipt ZEBRA TECHNOLOGIES 18
Slide 19: Questions
Questions ZEBRA TECHNOLOGIES
Slide 20: Thank You
Thank You ZEBRA and the stylized Zebra head are trademarks of Zebra Technologies Corp., registered in many jurisdictions worldwide. All other trademarks are the property of their respective owners. ©2023 Zebra Technologies Corp. and/or its affiliates. All rights reserved. ZEBRA TECHNOLOGIES