File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11---
22sidebar_position : 3
33---
4- # Using /geturl Endpoint
4+ # Using /search Endpoint
55
6- In this tutorial, we will be using the /geturl endpoint to get a circular's download URL.
7- The /geturl endpoint returns a string containing the download URL of the circular, taking the circular title as a parameter.
6+ In this tutorial, we will be using the /search endpoint to get a circular's download URL.
7+ The /search endpoint returns a string containing the download URL of the circular, taking the circular title as a parameter.
88
99This endpoint returns a string (or None if not found) containing the download URL of the circular.
1010
@@ -22,18 +22,18 @@ Python
2222``` python
2323import requests
2424
25- url = " https://raj.moonball.io/bpsapi/v1/geturl /"
25+ url = " https://raj.moonball.io/bpsapi/v1/search /"
2626payload = {' title' : ' 2nd Parent Teacher Meeting (PTM) for Grades IX, X & XII' }
2727
2828request = requests.get(url, json = payload)
29- print (request.request )
29+ print (request.text )
3030```
3131
3232Curl
3333
3434``` bash
3535curl -X ' GET' \
36- ' https://raj.moonball.io/bpsapi/v1/geturl /' \
36+ ' https://raj.moonball.io/bpsapi/v1/search /' \
3737 -H ' accept: application/json' \
3838 -H ' Content-Type: application/json' \
3939 -d ' {"title": "2nd Parent Teacher Meeting (PTM) for Grades IX, X & XII"}'
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ url = "https://raj.moonball.io/bpsapi/v1/latest/"
3232payload = {' category' : ' ptm' , " receive" : " all" }
3333
3434request = requests.get(url, json = payload)
35- print (request.request )
35+ print (request.text )
3636```
3737
3838Curl
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ url = "https://raj.moonball.io/bpsapi/v1/list/"
3232payload = {' category' : ' ptm' , " receive" : " all" }
3333
3434request = requests.get(url, json = payload)
35- print (request.request )
35+ print (request.text )
3636```
3737
3838Curl
You can’t perform that action at this time.
0 commit comments