Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.26 KB

File metadata and controls

65 lines (47 loc) · 1.26 KB

Fetch Entry Page Info

Fetch Entry Page Info API endpoint for Sweeppea. Retrieve entry page data for a given sweepstakes programmatically through the Sweeppea API.

Endpoint

GET /entrypage/{sweepstakes_id}

Path Parameters

Parameter Type Required Description
sweepstakes_id String Yes Unique identifier of the sweepstakes

Code Examples

cURL

curl -X GET "https://api-v3.sweeppea.com/entrypage/{sweepstakes_id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

JavaScript

const response = await fetch('https://api-v3.sweeppea.com/entrypage/{sweepstakes_id}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);

Python

import requests

url = "https://api-v3.sweeppea.com/entrypage/{sweepstakes_id}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())

Response

200 OK

{
  "success": true,
  "data": {},
  "message": "Operation completed successfully"
}