I think that I should use files.list request with "q" parameter. I don't know which value of q parameter I should to set.
For this you can give the value in q
parameter. In this you can verify with the sharedWithMe
field. Check this document for reference.
Hope that helps!