cyrillef / forge.commandline-curl

Authorization and file translation demo: Demonstrates Autodesk Forge API authorization and translation process using cURL
MIT License
12 stars 8 forks source link

date command in 2legged script generates an error #7

Open artvandelaysb opened 7 years ago

artvandelaysb commented 7 years ago

Running 2legged I get the error "date: invalid option -- 'v'" on Ubuntu. Not sure if this works on other Linux flavors

cyrillef commented 7 years ago

Oh sorry to hear that - which versions of Ubuntu, cURL, and bash are you using?

Saint-john commented 7 years ago

Hi, i had the same problem. I have fixed it , i did it manually. replace the response var by this one and replace 'yourclient_id' and 'yourclient_secret' by yours. response=$(curl -v https://developer.api.autodesk.com/authentication/v1/authenticate -H Content-Type:application/x-www-form-urlencoded -d client_id='yourclient_id' -d client_secret=yourclient_secret -d grant_type=client_credentials -d scope="bucket:create bucket:read data:write data:read") You can remove the data and SCOPE declaration.

using curl 7.52.1 and gitshell on windows.( first i used gitwyn but i wasn't be able to create a bucket.) i've done the entire typical workflow and it works but my obj.html doesn't, i mean i can't see my model.

cyrillef commented 7 years ago

would one of you mind to meet on gotomeeting to isolate the issue?

jaimerosales commented 7 years ago

I can Help, who do I contact ?

Cheers, Jaime R.

Saint-john commented 7 years ago

yes it would be nice to get helped.

jaimerosales commented 7 years ago

Hello,

I can help you out, Can I have your email, so I can send you a gotomeeting link, Are you available in the next 20 mins ?

Cheers, Jaime R.

Saint-john commented 7 years ago

my e-mail: camille.vanard@gmail.com. Sorry i can't do it right now, could you send me a mail please then we will talk about it.