close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Passing HTTP Basic Authorization Code to REST API

Thread began 6/02/2016 9:15 am by mrobben375515 | Last modified 6/03/2016 11:30 am by Ray Borduin | 1854 views | 9 replies |

mrobben375515

Passing HTTP Basic Authorization Code to REST API

I am having trouble authenticating with my CRM's REST API. Ultimately I want to pass a new registered user from my Wed Assist store to the CRM. I dumbed-down the code to see what the problem is. In the attached paged, I want to do a GET to return the contacts in my CRM. It looks like the error I am getting is that I am not passing the authorization through properly in the header. The API wants me to use HTTP Basic Authorization. The URL I am testing with is http://1to1microsites.com/simple.php I am attaching that php page, the js page and a txt with a properly formatted credential in Base64. Can you help me with this please?

Sign in to reply to this post

Ray BorduinWebAssist

Use jQuery's beforeSend callback to add an HTTP header with the authentication information:

beforeSend: function (xhr) {
xhr.setRequestHeader ("Authorization", "Basic " + btoa(username + ":" + password));
},

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Originally Said By: Ray Borduin
  Use jQuery's beforeSend callback to add an HTTP header with the authentication information:

beforeSend: function (xhr) {
xhr.setRequestHeader ("Authorization", "Basic " + btoa(username + ":" + password));
},  


see pm

Sign in to reply to this post

Ray BorduinWebAssist

I'm afraid since this doesn't pertain to a webassist product I'd have to get you to sign up for a premiere support ticket to help you debug your code and get this working.

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Originally Said By: Ray Borduin
  I'm afraid since this doesn't pertain to a webassist product I'd have to get you to sign up for a premiere support ticket to help you debug your code and get this working.  
Sign in to reply to this post

Ray BorduinWebAssist

See PM

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Originally Said By: Ray Borduin
  See PM  
Sign in to reply to this post

Ray BorduinWebAssist

Please use the premier support request form and include your phone number and I'll contact you to schedule the meeting.

http://www.webassist.com/premier_request.php

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Originally Said By: Ray Borduin
  Please use the premier support request form and include your phone number and I'll contact you to schedule the meeting.

http://www.webassist.com/premier_request.php
  


Ray, I have narrowed down the issue I think. My concern is w

Sign in to reply to this post

Ray BorduinWebAssist

I could try to help but don't have any experience with them directly, so I couldn't make any promises. I'd be doing google searches and analyzing their documentation to try to figure out what the solution is.

Go ahead and see if they respond and sign up for a premier support ticket if you want me to help and I'll do what I can.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...