[go-nuts] Go course

2020-03-25 Thread Renato Marcandier
Hello guys,

What's the best course to start with Go?



Regards
RG

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b2aa0e9a-921f-49de-a0be-729a6ca35f5f%40googlegroups.com.


[go-nuts] Consume RESTful API Endpoints within a golang application with webtoken

2020-03-11 Thread Renato Marcandier
Hello guys,

do you have any HelloWorld project in GO using RESTful to issue HTTP
requests from within a Golang application to remote RESTful/API with web
token that expires every 60 minutes and then consume any data that is
returned?

I am trying to get a simple HelloWorld. First, I need to do a POST to grab
the new token and after using this token to do a GET and see the response
with "Hello World!" using the following parameters:

-

POST:


Using:

grant_type: password

client_id: x

client_secret: x

username: x

password: x


URL:
https://cloudsso.cisco.com/as/token.oauth2?grant_type=password&client_id=xx&client_secret=&username=xxx&password=xx


Response:

{

"access_token": "tMqvXkR4wTvFwKUNUvMrNUXdzkjD",

}


-

GET:


Using: Bearer Token

URL: https://api.cisco.com/hello


Response:

{"helloResponse":{"response":"Hello World!"}}


Regards
RG

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAGbJOOiT8fm7z6t5pNiFSmkXZy2KXs8Xdw-Cq0BkUD1CbUNExA%40mail.gmail.com.