You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this tutorial, we will be using the /cached-latest endpoint to get a cached list of
8
-
all circulars in one Category.
9
+
In this tutorial, we will be using the /cached-latest endpoint to get a cached list of all circulars in a single category.
9
10
10
-
This endpoint returns a dictionary (for `receive` being `all`) or string (for `receive` being `titles`/`links`), containing the latest circular (of the given category)'s title and direct download URL like the /latest endpoint.
11
11
But, This endpoint caches the latest circular for an hour, and returns the cached circulars if the cache is still valid.
12
12
13
13
This endpoint should be used when making an app that needs to get the latest circulars in one Category but does not need minute level precision.
@@ -20,62 +20,102 @@ Don't use this endpoint if you're making an app that needs minute level precisio
20
20
21
21
#### Parameters:
22
22
*`category` : `string`. Can have values (`general`, `ptm`, `exam`) [Mandatory]
23
-
*`receive` : `string`. Can have values (`all`, `titles`, `links`) [Optional]
24
23
25
-
The `category` parameter refers to one of the 3 main category of circulars on the
26
-
BPS Website.
24
+
The `category` parameter refers to one of the 3 main category of circulars on the BPS Website.
27
25
28
-
The `receive` parameter refers to what data you want to receive, either `all` which gives
29
-
the latest circular's Name and download URL, or `titles` which gives only the latest circular's Name, or `links` which gives only the latest circular's download URL.
30
26
31
27
## Example Requests
32
28
33
-
Python
29
+
<Tabs>
30
+
<TabItemvalue="python"label="Python"default>
34
31
32
+
Here is an example request using Python's `requests` library:
0 commit comments