(File file)
| 192 | } |
| 193 | |
| 194 | private static String getHash(File file) throws IOException, NoSuchAlgorithmException { |
| 195 | try (InputStream is = new FileInputStream(file)) { |
| 196 | return Helper.getHash(is, "SHA-256"); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | private static Pair<Integer, String> call(Context context, String api, String apiKey) throws IOException { |
| 201 | URL url = new URL(URI_ENDPOINT + api); |