Skip to content

Instantly share code, notes, and snippets.

@mininxd
Last active August 3, 2024 10:14
Show Gist options
  • Select an option

  • Save mininxd/555c13f8bfdf786efc91b9f90d946b45 to your computer and use it in GitHub Desktop.

Select an option

Save mininxd/555c13f8bfdf786efc91b9f90d946b45 to your computer and use it in GitHub Desktop.

Revisions

  1. mininxd renamed this gist Aug 3, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. mininxd renamed this gist Aug 3, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. mininxd revised this gist May 26, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion header.md
    Original 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://mininx.my.id/ :'D
    > if you found this gist from nowhere, try visit my homepage https://mininxd.my.id/ :'D
  4. mininxd revised this gist May 26, 2024. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion header.md
    Original 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
  5. mininxd revised this gist May 26, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion header.md
    Original 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 -m pip install requests_
    ``` python
    import requests
  6. mininxd revised this gist May 26, 2024. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions header.md
    Original 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 = {
    headers = {
    "accept": "application/json"
    }
    response = requests.get(url, params=headers)
    results = response.json()

    print(results);
    response = requests.get(url, headers=headers)
    result = response.json()
    print(result)
    ```
  7. mininxd revised this gist May 26, 2024. 1 changed file with 25 additions and 0 deletions.
    25 changes: 25 additions & 0 deletions header.md
    Original 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);
    ```
  8. mininxd revised this gist May 26, 2024. 2 changed files with 12 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    ``` bash
    curl --header "accept:application/json" https://api.mininxd.my.id/
    ```
    12 changes: 12 additions & 0 deletions header.md
    Original 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'
    })
    ```
  9. mininxd created this gist May 26, 2024.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    ``` bash
    curl --header "accept:application/json" https://api.mininxd.my.id/
    ```