Get the user a dedicated IP for sites that need one
lease_ipSome sites (LinkedIn, marked π in get_library) only accept a login from the address it signed in from. A dedicated IP is one address that only this account uses, and once the account holds one, every sign-in link and every later call on that login uses it automatically.
Call with no arguments first. If the account already holds one, it says so and nothing is bought. Otherwise it returns priceCents and a message with the price for termDays days in country (default US). The price is charged up front and is not refundable. If something must happen first (a card on file, a one-time identity check), mustFirst names it with the link that fixes it: give your user that link and stop.
Never buy without asking. Tell your user the exact price and buy only if they agree, by calling again with confirmPriceCents set to the price they agreed to. A live price above that is refused before any charge, and repeating the same call cannot buy two. Pass another: true only when your user asked for a second IP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| another | No | Buy a second IP although the account holds one. Only when your user asked. | |
| country | No | Two-letter country code for the IP, e.g. "US" (the default). | |
| termDays | No | How many days the IP is held, paid up front (default 30). | |
| confirmPriceCents | No | The price in US cents your user agreed to, from the unconfirmed call. Only this buys. |