Question: Api Not Connecting With Secret Key

Api Not Connecting With Secret Key

Dear Team I generated api to get product list. however when testing api (following: user manual) its getting no response from external connection ( Android APP). Do i need to add the 'API

HA

H AWA

Asked
Dear Team
I generated api to get product list. however when testing api (following: user manual) its getting no response from external connection ( Android APP).
Do i need to add the 'API Secret' in any specific file.
also what is the path to the api? in my case, the api folder is in the ....app\controllers\api\v1

Also is there any update for the API to push new sales via the app to the server?

Kind Regards
  • MS

    Mian Saleem

    Answered
    Hello,

    You need to send the `api-key` as header or url.

    The APIs controllers are in `app/controllers/api/v1/` folder.

    No, there is no option for POST, PUT & DELETE requests.

    Thank you
  • HA

    H AWA

    Answered
    thank you, do i need to add the secret (api-key) to a specific file in the controllers?
    if there is a snap shot of the files i would be grateful.
    Many Thanks
  • HA

    H AWA

    Answered
    This is the http request i made and getting error 403

    .......app/controllers/api/v1/products?include=brand,category&api-key=owws04wkgsc0ossw80ossk4okg4w48wo0ckss0wo

    do i need to add username and login to the api?
  • MS

    Mian Saleem

    Answered
    Hello,

    No, only api key is required. Please share your site link and owner login details in private reply. I will try to have a look.

    Thank you
  • Login to Reply