Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7069409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:26:32+00:00 2026-05-28T05:26:32+00:00

We are tying to make a connection to the MYEMMA API which must include

  • 0

We are tying to make a connection to the MYEMMA API which must include an HTTP Basic authentication header containing the public & private API keys for our account.

How do we include this information in our JQuery API call? Here is what we have so far:

<script type="text/javascript">
  $(document).ready(function() {
    url:  "https://api.e2ma.net/123/members/add",
    dataType: 'json',
    type: "POST"
     {
       "fields": {
       "first_name": "Benjamin"
     },
     "email": "benjamin@myemma.com"
    }
  });
</script>

We just need to know how to create the authentication header, including our keys, to include in the call.

For reference: http://myemma.com/api-docs/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:26:32+00:00Added an answer on May 28, 2026 at 5:26 am

    What you are currently doing is very far from what you should be doing (it looks like you are giving labels to lots of strings, etc, which cannot be comma separated, which will be an invalid label error).

    As per the docs, add username and password keys to your $.ajax().

    $.ajax({
        username: 'username',
        password: 'password',
        url:  'https://api.e2ma.net/123/members/add',
        dataType: 'json',
        type: 'POST',
        data: {
           first_name: 'Benjamin',
           email: 'benjamin@myemma.com'
        }
    });
    

    You don’t need to wait for the DOM to be ready to fire a XHR.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make an Http connection in a J2ME application. Problem is
I'm trying to make a connection pool following this link: http://192.9.162.55/developer/onlineTraining/Programming/JDCBook/conpool.html I don't understand
Can anyone tell me how to make connection in webconfig file (which don't require
I am trying to make an Java application, which needs a connection with a
I'm trying to make a connection to a SQL Server Express DB on localhost,
I am tying to make comments in a blog engine XSS-safe. Tried a lot
trying to make a page which will recursively call a function until a limit
I'm trying to make a connection to an oracle database using the sample codes
I'm trying to make a connection to sql server database(hosted on localhost) but keep
At the moment I'm trying to make a connection to a local server. Connecting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.