Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
vince_faller
Super User

Oauth with HTTP Request()

Hello. I'm having a difficult time parsing the documentation for Oauth and HTTP Request.  It says I have to do

POST https://login.microsoftonline.com/{tenant}/oauth2/v2.0/devicecode
Content-Type: application/x-www-form-urlencoded

client_id=6731de76-14a6-49ae-97bc-6eba6914391e
scope=user.read%20openid%20profile

But I can not for the life of me figure out how to do that in HTTP Request.  

 

It has to be JMP 14.  

Vince Faller - Predictum
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Oauth with HTTP Request()

Both these applications and video are talking about REST interface with OAuth2. This probably will help you to do what you want 

Ín the add-in you will find code examples even if you do not create accounts for sites the app tries to get data from. 

 

https://community.jmp.com/t5/JMP-Add-Ins/Getting-Started-With-REST-in-JMP/ta-p/64104 

https://community.jmp.com/t5/Discovery-Summit-2018/Importing-Web-Service-Data-The-New-HTTP-Request-i... 

 

The latter is a presentation from Bryan Boone, JMP Principal Software Developer, SAS, with lots of material and examples

View solution in original post

1 REPLY 1
Highlighted

Re: Oauth with HTTP Request()

Both these applications and video are talking about REST interface with OAuth2. This probably will help you to do what you want 

Ín the add-in you will find code examples even if you do not create accounts for sites the app tries to get data from. 

 

https://community.jmp.com/t5/JMP-Add-Ins/Getting-Started-With-REST-in-JMP/ta-p/64104 

https://community.jmp.com/t5/Discovery-Summit-2018/Importing-Web-Service-Data-The-New-HTTP-Request-i... 

 

The latter is a presentation from Bryan Boone, JMP Principal Software Developer, SAS, with lots of material and examples

View solution in original post

Article Labels