News

Developer Challenge | June 2023 (Cash Prize, India now eligible!)

  • 27 June 2023
  • 0 replies
  • 170 views
Developer Challenge | June 2023 (Cash Prize, India now eligible!)
Userlevel 7
Badge +36

Hello Developer Group!

Our June 2023 🏆 Developer Challenge 🏆 is here!!!

 

Each month, I work with one of our internal Engineers or Solution Architects to generate a challenge that requires contestants to accomplish a technical feat using Klaviyo’s developer tools.

 

🎉💰 CASH Prize!!! 💰🎉

 

Here are the prizes for June’s Developer Challenge:

  • 1st Place:
    • $500 Cash Prize
    • 📦📈 Customized Social Media Package for LinkedIn! 📈📦
      Special Winner’s Pin in Community! 🏆
      👑 “King-of-the-hill” 👑 style article. Winner’s profile will be featured on the Developer Group landing page until they are unthroned!
       
  • 2nd Place: Insulated Branded Mug ☕
     
  • 3rd Place: Klaviyo-branded Cap 🤠

     

    2nd (right) and 3rd Place (left) Prizes

     

 

 

🔊 Rules and Guidelines 🔊

  1. The Challenge will be open until Monday, July 3 at 11:59 pm EST⏳, after which the submission form will be closed.
     
  2. You may use any resource at your disposal to investigate the challenge - including, but not limited to the Developer Portal, existing Community posts, and the Klaviyo Help Center.
    • Please note that there can only be 1 WINNER (the best, or in the event of a tie, the first answer as determined by our panel of internal judges), so collaborate at your own risk…👀
       
  3. Comments are enabled for this post (for questions and clarification), but please only use the Google form below to submit answers.
    • If you comment the answer here, it will spoil the fun! 😅

       

June 2023 Challenge

 

This month's challenge will focus on our new Accounts API, available today under the 6/15/2023 revision date. The Accounts API endpoints allow you to retrieve your account details programmatically. If you wanted to rebuild our Organization tab in our Account Settings page, you could use this API to do so!

 

Your challenge is as follows:

  • Part 1
    Many e-commerce stores support multiple currencies for reporting purposes. Using the Accounts API to retrieve your preferred_currency,
    write a function capable of converting any currency amount into the account’s currency
     
  • Part 2
    Successful e-mail and SMS campaigns send the right message at the right time. Customers may be spread across multiple timezones. As an e-commerce business owner or partner / agency that supports business owners, it’s important to know when campaigns will be sent relative to your timezone. Write a function that, given any timezone and an AM/PM string (ex. US/Eastern, 5:35PM), will show that time in your company’s timezone (ex. US/Pacific, 2:35PM).
 

We are excited to offer you an in-browser development environment through Napkin.io! Klaviyo acquired Napkin in November and we are using it internally for a variety of key functions and hope you will do the same. For this challenge, please submit your answers as a Napkin function by following the steps below:

  1. Create an account in Napkin - you can sign up via Google, GitHub, or email
  2. Clone one of the following Napkin functions:
    1. Python boilerplate
    2. Node boilerplate
       
  3. The cloned function will give you some boilerplate code that allows you to make API calls with our SDKs. Once you have cloned the function, you must get a private API in your Klaviyo account and add it to your Napkin environment:
    1. Instructions on getting your private key can be found here
    2. Once you have your private API key, set it as your KLAVIYO_PRIVATE_API_KEY under “Other” in your Napkin function like below 

OOaVZjHzCm2zbX9dixLaIkMNia8T7WACKmKanxgivJ8U997cRsIR4tiuLfWlQajPNOU3GtiOIDFll-EUdN1zLamceJtZQwtAjvXya_rejDdZqpTHDd5kVt6MSCdIfzI7xX325L94JNfH9HrCa7rwPPWxJIfAy3OrfWNNwF0KzUkYIZWUW0dFeEZEA_kF

 
  1. Once you have your solution, share your Napkin functions. You can get a URL to your public function by clicking Share like in the screenshot below:

hhGJXFETpr_BSblw3iegc2PtHL1O_T9D_JK1MCIoFhP3RLfqbFCfRGWNsTy1RXqssh6fdLDnDDYapPGd-Uw7KgzeiK-URXW9zEF7OudujPlcXCnmfKWAbPiU9jhVY5oW-9hPQ031bY_IjDyHUnd0teEhIxZLAtMHghmJXaJQuv_-1T_Ei1jTQDUbmVUY

 
  1. Finally, submit the URLs with your name and other details using the form below!
 

Good luck! And please feel free to email developers@klaviyo.com with any questions.
​​​​​​


 

ATTENTION

Contest is open to legal residents of the contiguous United States, Canada (with the exception of Quebec), Australia, India (excluding the State of Tamilnadu), and the United Kingdom
 

See here for full Terms and Conditions

 

SUBMIT YOUR ANSWER HERE:

https://forms.gle/XPNosze6kXXS3kh87

 

@braydengirard is our current champion. Can you defeat him and earn your spot at the top of the Developer Group?

 

- Brian


0 replies

Be the first to reply!

Reply