title: Sending data to Firebase from Matlab
body: <p>I want to save data to firebase from Matlab. Does firebase have similar api calls like ThingSpeak? How can i send JSON data from matlab by making API calls?</p>
  
  <p>I am making API calls from Matlab like for JSON:</p>
  
  <pre><code>    Firebase_Url = 'https://ecgproject-86945.firebaseio.com/';
      writeApiKey = '***';
      data = ['api_key=',writeApiKey,'&amp;name=',"JSOpn9ZC54A4P4RoqVa"];
      response = webwrite(Firebase_Url,data) 
  
      %data = struct('api_key',writeApiKey,'field1',data); //also tries this
      %options = weboptions('MediaType','application/json'); 
  </code></pre>
  
  <p>The Error:</p>
  
  <pre><code>Error using readContentFromWebService (line 46)
  The server returned the status 405 with message "Method Not Allowed" in response to the
  request to URL https://ecgproject-86945.firebaseio.com/.
  
  Error in webwrite (line 139)
      [varargout{1:nargout}] = readContentFromWebService(connection, options);
  
  Error in Untitled (line 16)
  response = webwrite(Firebase_Url,data)
  </code></pre>