title: How to use an apikey when parsing a website with java?
body: <p>So in general I'm tring to make a timetable app, but first trying to learn to parse the data from the system's api. I've been given a apikey from the systems admin of my school but the API is vague and I don't understand it. I'm trying to use HttpURLConnection.</p>
  
  <p>Here's the API tutorial regarding the apikey and some variable to use commands which I don't get either</p>
  
  <blockquote>
    <p>apikey This is a kind of password for accessing Edupage API for a
    school’s Edupage page. One school (and one Edupage web page) can have
    multiple API keys. It is possible to configure access rights for every
    API key individually, so school can give one API key to company
    providing attendance system (with postbeeps right) and other to
    company providing digital signages (with getdailyplan right). 
    cmd This
    parameter specifies API command. Commands are listed later in a
    separate chapter.</p>
  </blockquote>
  
  <p>I see the commands it refers to at cmd but again, dont know how to use the correct syntax.</p>
  
  <p>So far I have the code</p>
  
  <pre><code>import java.net.HttpURLConnection;
  import java.net.MalformedURLException;
  import java.net.URL;
  
  public class test2 {
      public static void main(String[] args) {
          String apikey = myapikey;
          String apiurl = url;
          try {
              URL url = new URL(apiurl);
              HttpURLConnection con = (HttpURLConnection) url.openConnection();
              con.setRequestMethod("GET");
  
  
          } catch (MalformedURLException ex){
              return;
          } catch (java.io.IOException ex) {
              return;
          }
      }
  }
  </code></pre>
  
  <p>Could anybody please help me?</p>