title: Office 365 API SharePointClient | How To get listitems?
body: <p>I am developing a Office 365 Mobile App with Cordova in Visual Studio 2013.
  So I am using the Client Libraries.</p>
  
  <p>I can authenticate to SharePoint Online using the discoveryContext</p>
  
  <pre><code>discoveryContext.services(authContext.getAccessTokenFn('Microsoft.SharePoint'))
      .then((function (capabilities) {            
          capabilities.forEach(function (v, i, a) {
              var endpointUri = v.resourceId + "sites/APIWorkspace/_api";
              if (v.capability === 'MyFiles') {
                  sharePointClient = new Microsoft.CoreServices.SharePointClient(
                      endpointUri,
                      authContext.getAccessTokenFn(v.resourceId)                        
                  );                    
                  console.log("Connected to Sharepoint");                 
              }                
          });
      }).bind(this), function (error) {
          console.log(JSON.stringify(error));
      });
  </code></pre>
  
  <p>My Question is, how can I access the lists from SharePoint Online? Are there any documentations about sharepoint.js or the SharePointClient?</p>
  
  <p>Thanks in Advance.</p>