title: How to get data from Request sent through HTTP callable function?
body: <p>I am using the Firebase Admin SDK to complete administrative functions. The functions i have deployed are on the Firebase Cloud Function in my console. I have been able to call these functions from the application however i do not know to get the values from the mapped data i sent through the call. If i'm correct that should be able to be retrieved through the <code>request</code> variable but when i try something like <code>request.email</code> for example, this does not seem to be a valid argument.</p>
  <p>MainActivity.java</p>
  <pre><code>public Task&lt;String&gt; callCloudFunction() {
              FirebaseFunctions mFunctions = FirebaseFunctions.getInstance();
              Map&lt;String, Object&gt; data = new HashMap&lt;&gt;();
              data.put(&quot;email&quot;, &quot;new@example.com&quot;);
              data.put(&quot;password&quot;, &quot;changePassword&quot;);
              data.put(&quot;displayName&quot;, &quot;Mike Example&quot;);
              data.put(&quot;trainerId&quot;, &quot;Mike Example&quot;);
              data.put(&quot;photoURL&quot;, &quot;NULL&quot;);
  
              return mFunctions
                      .getHttpsCallable(&quot;mkUser&quot;)
                      .call(data)
                      .continueWith(new Continuation&lt;HttpsCallableResult, String&gt;() {
                          @Override
                          public String then(@NonNull Task&lt;HttpsCallableResult&gt; task) {
                              // This continuation runs on either success or failure, but if the task
                              // has failed then getResult() will throw an Exception which will be
                              // propagated down.
                              return (String) task.getResult().getData();
                          }
                      });
  
      }
  </code></pre>
  <p>index.ts</p>
  <pre><code>export const mkUser = functions.https.onRequest((request, response) =&gt;{
  
    admin.auth().createUser({
        email: request.email, //IS NOT A VALID ARGUMENT ('email' CANNOT BE FOUND)
        emailVerified: false,
        password: 'secretPassword',
        displayName: 'John Doe', //VALUES ARE HARDCODED BUT I WOULD LIKE TO USE 'Mike Example' SENT FROM MAIN ACTIVITY
        photoURL: 'http://www.example.com/12345678/photo.png',
        disabled: false
      })
        .then(function(userRecord: { uid: any; }) {
          // See the UserRecord reference doc for the contents of userRecord.
          console.log('Successfully created new user:', userRecord.uid);
        })
        .catch(function(error: any) {
          console.log('Error creating new user:', error);
        });
  });
  </code></pre>