I was just trying to finding information about REST API. There are some examples at magento resource and some private blogs. All are same!!
As basic info I found if I want to update products through REST API I need to use admin authorization endpoint. (/admin/oauth_authorize) and if I use customer or guest I can just retrieve data.
I tried to create sample code and check and I found when I run code through browser I need to first login admin and then I need to accept access and then I can use API resource.
I don't know why it is asking me to login in admin first. And if I must need to login to access it then how it would work internally between server.
I tried to create sample code using below blog
and it is working fine and giving response also.
Actually I am looking for how it will work internally between two servers and how client will call REST API to magento how it would be authenticate and how magento would return response.
Looking for advice.