API Documentation: Generate Powerball Numbers

Introduction

This API endpoint will generate a set of Powerball numbers, white balls and the red powerball.

Authentication

To use this API, you need to authenticate using your e-mail address. Here’s how you can do it:

Authorization: Bearer YOUREMAILADDRESS

Endpoints

GET https://lottery.handyfunctions.com/?type=generatePowerball

Generate Powerball Numbers

Example

Request

GET https://lottery.handyfunctions.com/?type=generatePowerball https/1.1
Host: lottery.handyfunctions.com
Authorization: Bearer YOUREMAILADDRESS

Response

{
            "type": "powerball",
            "whiteBalls": [
            6,
            21,
            50,
            59,
            66
            ],
            "redBall": 22
            }

Errors

Common error codes and their meanings: