Example:
Score | Plan Price | Plan ID |
---|---|---|
Low | $9.99 | low_999 |
Middle | $14.99 | middle_1499 |
High | $19.99 | high_1999 |
Ultra | $29.99 | ultra_2999 |
Unknown | $14.99 | unknown_1499 |
curl -X POST "https://modernpricing.com/v1/scores" \
-H "Authorization: Basic your-api-key-goes-here" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"ip_address":"67.243.228.40",
"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6)"}'
# == Schema Information
#
# Table name: users
#
# id :bigint(8)
# first_name :string
# last_name :string
# email :string
.
.
.
# score :string
#
// Pseudo code:
case score
when 'low'
...
when 'middle'
...
when 'high'
...
when 'ultra'
...
when 'unknown'
...
end
// Pseudo code:
if User Agent is a bot
score = 'bot'
else
... request Modern Pricing score
end
Have you...
If you answered yes to all of these questions, you're ready for release!