Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9278191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:18:16+00:00 2026-06-18T17:18:16+00:00

when we fetch product, error exist like this ‘Invalid auth/bad request (got a 403,

  • 0

when we fetch product, error exist like this ‘Invalid auth/bad request (got a 403, expected HTTP/1.1 20X or a redirect)’ in magento.
My code is below.

$resourceUrl = "http://localhost/magento/api/rest/products"; 
$oauthClient->fetch($resourceUrl, array(), 'GET', array('Content-Type' => 'application/json'));
$productsList = json_decode($oauthClient->getLastResponse());

I was completed the user authentication by this url

http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html.

please solve my problem..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T17:18:17+00:00Added an answer on June 18, 2026 at 5:18 pm

    You want to give access permission to Customer/Guest.

    Follow this step..

    Go to magento admin panel System->Webservice->RESt Roles->Customer->Resources Access ->SET ALL

    and also Go to System->Webservice->RESt Roles->Guest->Resources Access ->SET ALL

    Similarly Go to System->Webservice->RESt Attribute->Customer->Resources Access ->SET ALL

    and also Go to System->Webservice->RESt Attribute->Guest->Resources Access ->SET ALL

    Now check that there is product in your magento and also assign Websites(e.g Main Website) to product.

    now print $productsList that is display in question and you will see all product array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My links are like http://www.shinylook.ro/product.php?id=58 and I rewrite them like http://www.shinylook.ro/produs/58/saboti-dama/ using this code:
I have my form like this: Product dropdown Quantity text field UnitPrice display TotalPrice
Ok so I've got this piece of offending code: <!-- Begin the Product Group
In general, I have the following scenario: Fetch product and its related data from
Have not been able to find a solution for this. models.py class Product(models.Model): prod_id
I've built an inventory update script - where I fetch a product collection in
in logcat i have this error: 12-05 19:20:26.696: E/SQLiteDatabase(1415): Error inserting lon=5.25 lat=7.52 name=null
This gives me error $illegal = array(&, <, >, \); $legal = array(&amp;, &lt;,
I have this basic one-to-many relationship in Core Data: Brand has N Products Product
I am using pdo in php and the error i am getting is: Product

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.