Official SDKs
Python, Node.js, and Go clients for Connect, credentials, and bulk pools.
Shared surface (v0.2+): session intents, order credentials, bulk pools, and proxy URL helpers.
| Language | Package | Install |
|---|
| Python | proxyhubb | pip install proxyhubb |
| Node.js | @proxyhubb/sdk | npm install @proxyhubb/sdk |
| Go | module | go get github.com/samuel-1-avson/ProxySocialHub/sdks/[email protected] |
Defaults
| Setting | Default | Override |
|---|
| Control API | https://api.proxyhubb.com | constructor / base_url / baseURL |
| Buyer proxy | proxy.proxyhubb.com:8090 | PROXYHUBB_PROXY_ENDPOINT |
Auth reminder
| Credential | Flows |
|---|
JWT (Authorization: Bearer) | Session intents, order credentials |
API key (X-API-Key / Bearer phub_…) | Bulk pools, B2B purchase scopes |
Mixing these up is the most common integration mistake: pool calls with only a JWT may work for some routes, but intent create requires JWT; pools are designed around API keys.
Pick a path
- Quick Connect — JWT → create intent → proxy with
session-intent — Python / Node / Go
- Marketplace order — buy →
get*OrderCredentials → CONNECT username/password
- Bulk pools — API key →
createPool → pool proxy URLs
Common errors (all SDKs)
| Symptom | Fix |
|---|
401 / unauthorized | Check JWT expiry or API key value |
| Intent create fails with API key | Pass access_token / accessToken, not only phub_… |
| Proxy URL wrong host | Set PROXYHUBB_PROXY_ENDPOINT or pass endpoint into the client |
| HTTPS requests hang / 501 | Ensure the HTTP client uses CONNECT (SDK helpers do) |
Deep dives: Python · Node.js · Go