Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Use Restapi As Admin, But Get Informations Like Customer Rate Topic   - - - - -

  • X-Volution
  • Member
  • Members
  • Join Date: 20-Feb 20
  • 34 posts

Posted 27 February 2020 - 03:51 PM #1

Hi, we are trying to use your RestAPI for getting data like customer.


Is it possible to login to Api with Admin Token, but getting Data with another user_id?


For example special User(group) prices, only visible products for this user or anything else.


Maybe it coud help to add an hook at Line 246 of app/Tygh/Api.php 


Maybe like this:

fn_set_hook('api_define_area', $area, $user_data);

Or you have another solution for this.


Thank you.