I'd like to say a great thank you. This video was of better use that the official documentation and reaching out to Zoho's customer service, email and chat. I'm thinking of making a RUclips video of taking this and fusing it with a traditional PHP contact form and have the files downloadable from my website. Anyone who would be interested like this comment or leave a comment/reply.
What kind of client would you use for an automated batch process? With the Self Client you generate the code by hand, but that requires a human. I tried the other clients (with Postman), but they pop-up a browser-based user confirmation which is not practical either. Of course, once the code is obtained, getting the token is easy.
but the access token does expire after 1 hour, and no one puts up real world use case where when you put a request in and it has expired....how to get another access token.
Since the access token expires after 60 minutes you have to use the refresh token generated earlier in the process to *refresh* or create new access tokens indefinitely since refresh tokens have no time limit.
{"code":"AUTHENTICATION_FAILURE","details":{},"message":"Authentication failed","status":"error"} getting this error while inserting or getting the leads
I have used your code but I am only able to do to access token but after that ...when insert data it will not work ..it will produce an error like object(stdClass)#1 (4) { ["code"]=> string(22) "AUTHENTICATION_FAILURE" ["details"]=> object(stdClass)#2 (0) { } ["message"]=> string(21) "Authentication failed" ["status"]=> string(5) "error" }
@@harryjames6713 that's not it. I get the same error thrown even if I try to insert a record right away. Is there a way to get a permanent access token though?
Hi, I have a doubt. REST API is being used over here and according to Zoho's current structure, we can only generate 5 access tokens / minute for every refresh token, how can we have Token Persistence in case of REST APIs? Thanks for your help
u can send another request to get the access token and the refresh token, refresh token never expires so you can use that to acquire a new access token
Does the access token you receive from using the refresh token ever expire? For example I could get that using postman and just store it in env file and I don’t have to make the auth requests every time I want to insert a new record from my website?
Hi, I've used your code to get an access token but when i try to add a record while using your code i get an error from the API "expected_data_type":"jsonarray" Error. I guess its coming from the json_encode function not returning what we want ??
Thank you for this video, it helps me a lot. Do you know how to create the token through the php sdk? I mean the code that has a duration of 10 minutes, I would like to automate that process. Thanks
I'd like to say a great thank you. This video was of better use that the official documentation and reaching out to Zoho's customer service, email and chat. I'm thinking of making a RUclips video of taking this and fusing it with a traditional PHP contact form and have the files downloadable from my website. Anyone who would be interested like this comment or leave a comment/reply.
Thanks for this info! I was confused with the SDK and needed a quick solution.
can u please make a video on using ZOHO PHP SDK for creating leads through form?
Thank you so much
this video very helpful for me
What's the exact resource you referenced in order to do this?
Nice explation
Can i get these all code files ?
Thanks for this video with great content. It helps me a lot
What kind of client would you use for an automated batch process? With the Self Client you generate the code by hand, but that requires a human. I tried the other clients (with Postman), but they pop-up a browser-based user confirmation which is not practical either. Of course, once the code is obtained, getting the token is easy.
Thank you so much!
but the access token does expire after 1 hour, and no one puts up real world use case where when you put a request in and it has expired....how to get another access token.
Since the access token expires after 60 minutes you have to use the refresh token generated earlier in the process to *refresh* or create new access tokens indefinitely since refresh tokens have no time limit.
I did this in my projects.
thank you very much it worked perfectly for me
{"code":"AUTHENTICATION_FAILURE","details":{},"message":"Authentication failed","status":"error"}
getting this error while inserting or getting the leads
Got it..i didn't gave a space
Thanks you! great video
When I try execute last script I receive massage:
"Authentication failed"
help a lot. Greate stuff
I have used your code but I am only able to do to access token but after that ...when insert data it will not work ..it will produce an error like object(stdClass)#1 (4) { ["code"]=> string(22) "AUTHENTICATION_FAILURE" ["details"]=> object(stdClass)#2 (0) { } ["message"]=> string(21) "Authentication failed" ["status"]=> string(5) "error" }
That's because Zoho API access token expires after 3600 seconds. You need to renew access token after every 3600 seconds
@@harryjames6713 that's not it. I get the same error thrown even if I try to insert a record right away. Is there a way to get a permanent access token though?
yes i face the same issue when using insert record page
That's awesome bro
sir php code share i descryption and php files in used packges command share in descryption please i am waiting
Hi,
I have a doubt. REST API is being used over here and according to Zoho's current structure, we can only generate 5 access tokens / minute for every refresh token, how can we have Token Persistence in case of REST APIs?
Thanks for your help
u can send another request to get the access token and the refresh token, refresh token never expires so you can use that to acquire a new access token
Does the access token you receive from using the refresh token ever expire? For example I could get that using postman and just store it in env file and I don’t have to make the auth requests every time I want to insert a new record from my website?
Hi, I've used your code to get an access token but when i try to add a record while using your code i get an error from the API "expected_data_type":"jsonarray" Error. I guess its coming from the json_encode function not returning what we want ??
it's because the field type is expecting data in JSON format, try adding JSON encoded array
how it work fine
?
Thank you for this video, it helps me a lot.
Do you know how to create the token through the php sdk?
I mean the code that has a duration of 10 minutes, I would like to automate that process.
Thanks
Hola Juan David, ya pudiste conectarlo?, que pena ando en las mismas con el php-sdk y no he sido capaz :(
HI, Do you have files for this. Appreciate it if you could share it. Thank you by the way
How do I insert img in feild ?
its showing me "{\"error\":\"invalid_code\"}" in refresh token code despite mentioning everything right
the code gets expired for every 10 mins. try to generate another fresh code and try.
Thanks a lot!
спасибо!
provide all this code on github