Last active
August 3, 2024 10:14
-
-
Save mininxd/555c13f8bfdf786efc91b9f90d946b45 to your computer and use it in GitHub Desktop.
Revisions
-
mininxd renamed this gist
Aug 3, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mininxd renamed this gist
Aug 3, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mininxd revised this gist
May 26, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,4 +38,4 @@ print(result) <br><br> > if you found this gist from nowhere, try visit my homepage https://mininxd.my.id/ :'D -
mininxd revised this gist
May 26, 2024 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,4 +34,8 @@ url = "https://api.mininxd.my.id/" response = requests.get(url, headers=headers) result = response.json() print(result) ``` <br><br> > if you found this gist from nowhere, try visit my homepage https://mininx.my.id/ :'D -
mininxd revised this gist
May 26, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,7 @@ axios.get("https://api.mininxd.my.id/", { ## Python > install requests module first<br> > _$ python -m pip install requests_ ``` python import requests -
mininxd revised this gist
May 26, 2024 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,11 +27,11 @@ axios.get("https://api.mininxd.my.id/", { import requests url = "https://api.mininxd.my.id/" headers = { "accept": "application/json" } response = requests.get(url, headers=headers) result = response.json() print(result) ``` -
mininxd revised this gist
May 26, 2024 . 1 changed file with 25 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,29 @@ fetch("https://api.mininxd.my.id/", { headers: { 'accept':'application/json' }) ``` ## Axios ``` javascript axios.get("https://api.mininxd.my.id/", { headers: { 'accept':'application/json' }) ``` ## Python > install requests module first<br> > $__python -m pip install requests__ ``` python import requests url = "https://api.mininxd.my.id/" headers = { "accept": "application/json" } response = requests.get(url, params=headers) results = response.json() print(results); ``` -
mininxd revised this gist
May 26, 2024 . 2 changed files with 12 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ## CURL ``` bash curl --header "accept:application/json" https://api.mininxd.my.id/ ``` ## JavaScript ``` javascript fetch("https://api.mininxd.my.id/", { headers: { 'accept':'application/json' }) ``` -
mininxd created this gist
May 26, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ ``` bash curl --header "accept:application/json" https://api.mininxd.my.id/ ```