I am trying get access token & access secret but when i try to connect to magento2 rest API i am getting this error, I have tried multiple endpoints urls like rest/V1/
, rest/all/V1/
etc but still get Net::HTTPRetriableError: 302 "Found"
Here is the code i am using to access the token
REQUEST_URL = '/oauth/token/request'
ACCESS_URL = '/oauth/token/access'
OAuth::Consumer.new(consumer_key, consumer_secret, site: site, request_token_path: REQUEST_URL, access_token_path: ACCESS_URL)
Can you please advice as to what could be the issue. Thanks.