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
@@ -53,17 +40,17 @@ Put the subject course code in the `course` parameter. The subject must be Albir
53
40
fetch("ECONS", course: "ECON 1140");
54
41
```
55
42
56
-
Here's some trick. Let's say you want to **filter** the courses for **third**-year subjects only, just provide the first digit and ignore the rest.
43
+
Here's a trick: Let's say you want to **filter** the courses for **third**-year subjects only, just provide the first digit and ignore the rest.
57
44
58
45
```dart
59
46
fetch("CCAC", course: "CCUB 3");
60
47
```
61
48
62
49
### Albiruni-formatted
63
50
64
-
The course code **must** be in the following format: `ABCD 1234`. The first four characters are the subject code, and the last four characters are the subject number. The space is required. _In some cases, the course code format might be different but generally, it will look like this._
51
+
The course code **must** be in the following format: `ABCD 1234`. The first four characters are the subject code, and the last four characters are the subject number. The space is required. _In some cases, the course code format might be different, but generally, it will look like this._
65
52
66
-
Lucky for you, `.toAlbiruniFormat()` extension method will properly format the string for you. Useful when you're receiving input from the users etc.
53
+
Luckily, the `.toAlbiruniFormat()` extension method will properly format the string for you. Useful when you're receiving input from users, etc.
Parse subject data from JSON to Dart object, use `fromJson()` constructor.
62
+
To parse subject data from JSON to a Dart object, use the`fromJson()` constructor.
76
63
77
64
Example JSON:
78
65
@@ -94,32 +81,32 @@ Example JSON:
94
81
}
95
82
```
96
83
97
-
Parse it like following:
84
+
Parse it as follows:
98
85
99
86
```dart
100
87
var data = <yourjsonstring>
101
88
var subjects = Subject.fromJson(jsonDecode(data));
102
89
```
103
90
104
-
Similarly, you can convert Dart object to JSON using `toJson()` method.
91
+
Similarly, you can convert a Dart object to JSON using the`toJson()` method.
105
92
106
-
I think that's it for the basic usage of this library, of course, you can always discover more. You can drop your inquiries in [issues](https://github.com/iqfareez/albiruni/issues) if you have any. More examples can be found in the `/example` folder.
93
+
That's it for the basic usage of this library. Of course, you can always discover more. You can drop your inquiries in [issues](https://github.com/iqfareez/albiruni/issues) if you have any. More examples can be found in the `/example` folder.
107
94
108
95
## Common issues
109
96
110
97
- XMLHttpRequest error or CORS error
111
98
112
-
**Update**: The proxy service has been shut down. I will remove the `useProxy` property in the few future release.
99
+
**Update**: The proxy service has been shut down. I will remove the `useProxy` property in a future release.
113
100
114
-
Usually occurs if you're developing for the web. Set `useProxy` flag to **true**. This will add a proxy layer between the client and the albiruni server.
101
+
This usually occurs if you're developing for the web. Set the `useProxy` flag to **true**. This will add a proxy layer between the client and the Albiruni server.
This happens when the albiruni server has some [certificate issues](https://github.com/iqfareez/iium_schedule/issues/10#issuecomment-1086550494). Some clients might reject the requests. If you're in development, try [this answer from SO](https://stackoverflow.com/a/61312927/13617136).
109
+
This happens when the Albiruni server has some [certificate issues](https://github.com/iqfareez/iium_schedule/issues/10#issuecomment-1086550494). Some clients might reject the requests. If you're in development, try [this answer from SO](https://stackoverflow.com/a/61312927/13617136).
123
110
124
111
## List of available kulliyyah (as of 8 October 2025)
125
112
@@ -148,10 +135,9 @@ I think that's it for the basic usage of this library, of course, you can always
148
135
| 20 |`KOS`| SCIENCE |
149
136
| 21 |`SC4SH`| SEJAHTERA CENTRE FOR SUS |
150
137
151
-
This list of available kulliyyah might change over time, kindly refer to https://iiumschedule.iqfareez.com/docs/devs/albiruni#list-of-available-kulliyyah
138
+
This list of available kulliyyah might change over time. Kindly refer to https://iiumschedule.iqfareez.com/docs/devs/albiruni#list-of-available-kulliyyah
0 commit comments