Rev 1836 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1836 | Rev 1840 | ||
---|---|---|---|
Line 181... | Line 181... | ||
181 | return "{}"; |
181 | return "{}"; |
182 | return files.get(0).getCourseReportQuestionsJson(); |
182 | return files.get(0).getCourseReportQuestionsJson(); |
183 | } |
183 | } |
184 | else |
184 | else |
185 | { |
185 | { |
186 | 1.5.0/docs/api/java/net/URL.html">URL url = new 1.5.0/docs/api/java/net/URL.html">URL(Globals.SYSTEM_WSJSON_SERVICE_COURSE_REPORT_RESULTS + "?code=" + sigesCode + "&year=" + year); |
186 | 1.5.0/docs/api/java/net/URL.html">URL url = new 1.5.0/docs/api/java/net/URL.html">URL(Globals.SYSTEM_WSJSON_SERVICE_COURSE_REPORT_RESULTS + "?code=" + sigesCode + "&year=" + year + "&period="+periodIncluded); |
187 | 5+0%2Fdocs%2Fapi+InputStream">InputStream is = url.openStream(); |
187 | 5+0%2Fdocs%2Fapi+InputStream">InputStream is = url.openStream(); |
188 | 188 | ||
189 | 1.5.0/docs/api/java/lang/String.html">String json = StreamsUtils.readString(is); |
189 | 1.5.0/docs/api/java/lang/String.html">String json = StreamsUtils.readString(is); |
190 | is.close(); |
190 | is.close(); |
191 | JSONObject jsonObject = new JSONObject(json); |
191 | JSONObject jsonObject = new JSONObject(json); |