Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Featured Replies

  • Administrator
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://gapi.pbcv.dev/get/multiple"
  method := "POST"

  payload := strings.NewReader(`{`+"
"+`
  "servers": [`+"
"+`
    "1.12.255.158:27015",`+"
"+`
    "1.12.68.111:27015",`+"
"+`
    "101.34.54.110:27015",`+"
"+`
    "101.35.158.231:27015",`+"
"+`
    "101.42.152.105:27015",`+"
"+`
    "101.43.186.121:27015",`+"
"+`
    "101.43.193.98:27015",`+"
"+`
    "101.43.207.27:27015",`+"
"+`
    "103.167.246.186:27015",`+"
"+`
    "103.179.44.152:27015",`+"
"+`
    "103.193.138.228:27015",`+"
"+`
    "103.195.101.155:27015",`+"
"+`
    "103.214.68.23:27015",`+"
"+`
    "103.73.65.135:27015",`+"
"+`
    "103.73.66.161:27015",`+"
"+`
    "104.131.24.108:27015",`+"
"+`
    "104.153.109.15:27015",`+"
"+`
    "104.153.109.21:27015",`+"
"+`
    "104.153.109.24:27015",`+"
"+`
    "104.153.109.28:27015",`+"
"+`
    "104.156.224.131:27015",`+"
"+`
    "104.156.224.132:27015",`+"
"+`
    "104.156.224.133:27015",`+"
"+`
    "104.156.224.134:27015",`+"
"+`
    "104.156.224.148:27015",`+"
"+`
    "104.156.224.149:27015",`+"
"+`
    "104.156.224.150:27015",`+"
"+`
    "104.197.144.154:27015",`+"
"+`
    "104.223.121.242:27015",`+"
"+`
    "107.173.89.31:27015",`+"
"+`
    "108.181.1.219:27015",`+"
"+`
    "108.61.170.233:27015",`+"
"+`
    "108.61.69.68:27015",`+"
"+`
    "108.61.88.76:27015",`+"
"+`
    "109.123.108.107:27015",`+"
"+`
    "109.123.108.125:27015",`+"
"+`
    "109.123.248.92:27015",`+"
"+`
    "109.163.232.50:27015",`+"
"+`
    "109.163.232.52:27015",`+"
"+`
    "109.174.60.21:27015",`+"
"+`
    "109.195.103.47:27015",`+"
"+`
    "109.230.149.6:27015",`+"
"+`
    "109.248.59.75:27015",`+"
"+`
    "109.74.75.48:27015",`+"
"+`
    "109.87.149.194:27015",`+"
"+`
    "111.230.44.179:27015",`+"
"+`
    "112.74.189.250:27015",`+"
"+`
    "116.202.49.32:27015",`+"
"+`
    "116.203.65.9:27015",`+"
"+`
    "118.70.132.119:27015",`+"
"+`
    "119.203.67.30:27015",`+"
"+`
    "119.29.240.119:27015",`+"
"+`
    "119.45.129.78:27015",`+"
"+`
    "119.45.19.82:27015",`+"
"+`
    "119.91.157.193:27015"`+"
"+`
  ]`+"
"+`
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Cache-Control", "no-cache")
  req.Header.Add("Accept", "*/*")
  req.Header.Add("Accept-Encoding", "gzip,deflate")
  req.Header.Add("Connection", "keep-alive")
  req.Header.Add("X-API-Token", "FREE")
  req.Header.Add("Agent", "Mozilla/5.0 (compatible; GApiPlugin/1.0; +https://gapi.pbcv.dev)")
  req.Header.Add("Authorization", "Bearer apitestoken")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}

 

Pentru cei care au cumparat pachetul pro:

'X-API-Token': 'FREE'

Poate fi inlocuit cu tokenul vostru.

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.