0

I am trying below code but getting error https://xxxxxxx.sharepoint.com/sites/xxxxxxx/15/v1.0/me/drive/sharedWithMe 404 (Not Found)

private _getFilesSharedWithMe(): Promise<any> {

        return this.props.context.httpClient.get(`v1.0/me/drive/sharedWithMe`, SPHttpClient.configurations.v1).then((response: HttpClientResponse) => {
          if (response.ok) {
            return response.json();
          } else {
            console.warn(response.statusText);
          }
        }).then((respJSON: any) => {
          console.log(respJSON);      
          return respJSON;
        });
    
     }
4
  • It seems that you are trying to use Graph API into SPFx so you follow this article which describes in detail how to consume graph api in SPFx May 2 at 13:26
  • I tired but getting access denied even i have approved graph api permission request
    – Ashok
    May 3 at 4:21
  • Please add your updated code in question to get more details May 3 at 5:17
  • in graph api Microsoft developer explorer as well getting access denied with my work account
    – Ashok
    May 3 at 6:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.