Github Stalker
Ganti YOUR_APIKEY dengan apikey kalian, apikey bisa kalian dapatkan dengan gratis di https://api.darkcoder.xyz
-
Shell (
curl)
curl --request GET \ url 'https://api.darkcoder.xyz/dc/stalker/github?apikey=YOUR_APIKEY&username=LoliKillers' -
Nodejs (
axios)
var axios = requires('axios') var options = { method: "GET", url: "https://api.darkcoder.xyz/dc/stalker/github", params: { apikey: "YOUR_APIKEY", username: "LoliKillers" } } axios.request(options) .then(result => { console.log(result) }) .catch(error => { console.log(error) }) -
Ruby (
net:http)
require 'uri' require 'net/http' require 'openssl' url = URI("https://api.darkcoder.xyz/dc/stalker/github?apikey=YOUR_APIKEY&username=LoliKillers") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body -
Python (
request)
import requests url = "https://api.darkcoder.xyz/dc/stalker/github" querystring = {"apikey": "YOUR_APIKEY", "username": "LoliKillers"} response = requests.request("GET", url, headers=headers, params=querystring) print(response.text) -
GO (
new request)
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://api.darkcoder.xyz/dc/stalker/github?apikey=YOUR_APIKEY&username=LoliKillers" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } -
Java (
ok http)
OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://api.darkcoder.xyz/dc/stalker/github?apikey=YOUR_APIKEY&username=LoliKillers") .get() .build(); Response response = client.newCall(request).execute();
.json
{
"code": Number,
"date": String,
"result": {
"login": String,
"id": Number,
"node_id": String,
"avatar_url": Url,
"gravatar_id": String,
"url": Url,
"html_url": Url,
"followers_url": Url,
"following_url": Url,
"gists_url": Url,
"starred_url": Url,
"subscriptions_url": Url,
"organizations_url": Url,
"repos_url": Url,
"events_url": Url,
"received_events_url": Url,
"type": String,
"site_admin": String,
"name": String,
"company": String,
"blog": String,
"location": String,
"email": String,
"hireable": String,
"bio": String,
"twitter_username": String,
"public_repos": Number,
"public_gists": Number,
"followers": Number,
"following": Number,
"created_at": String,
"updated_at": String
},
"headers": {
"server": String,
"vary": String,
"etag": string,
"connection": String
},
"warning": String
}
