locked
Dont connect to Files REST API RRS feed

  • Question

  • I want to use File REST API for manager Onedrive for business but I cann't connect althought I followed page https://msdn.microsoft.com/en-us/office/office365/api/files-rest-operations . I have an app on AD and set full permission. I can get access token from this app but it inactive. 

    This is my query:

    https://ddteambdev-my.sharepoint.com/_api/v1.0/me/files?Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1uQ19WWmNBVGZNNXBPWWlKSE1iYTlnb0VLWSJ9.eyJhdWQiOiJodHRwczovL2RkdGVhbWJkZXYtbXkuc2hhcmVwb2ludC5jb20vb25lZHJpdmUiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC8zYTdjMGE1Zi1jMDQwLTRiNWYtYjc2Yi1hZTlmNTcxYTIzOGEvIiwiaWF0IjoxNDI5MDc5NDAwLCJuYmYiOjE0MjkwNzk0MDAsImV4cCI6MTQyOTA4MzMwMCwidmVyIjoiMS4wIiwidGlkIjoiM2E3YzBhNWYtYzA0MC00YjVmLWI3NmItYWU5ZjU3MWEyMzhhIiwib2lkIjoiMDRhMjU5OTYtZWJkMS00M2I3LTk0NzAtOTQ5ZTY2YTZkYjI3Iiwic3ViIjoiMDRhMjU5OTYtZWJkMS00M2I3LTk0NzAtOTQ5ZTY2YTZkYjI3IiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvM2E3YzBhNWYtYzA0MC00YjVmLWI3NmItYWU5ZjU3MWEyMzhhLyIsImFwcGlkIjoiZTVjMzQ2YjktMzMzZC00NmQ4LWI0N2ItYTUwZmRkOTFhOTJkIiwiYXBwaWRhY3IiOiIxIn0.FDKj4c2wJBUQ9PSt0WNWj2O4PhXyPBEnEHa7x6nJbjpPsiesjtXmU3MYwZcGv3iLgbtc-4ja_msnoMDtEqYaUidDUlPGDYfyt5P31d0NBAdpgj91_cAzH1u8MvAyNrMgxr8o6ZGrEInsYsk42dnIxeBJrELxX_rvKVvx5DJ6qcAX9geOimBHisSLRmKFD-9ZzGD6j92TSico7K8DvcMzm4tM4yjkIH7Mi1z02IVFOxMqcmt9nnDSvVJmGwQvoeaFmEzNkZrqBS2JMnwbMrMG8zIqru7XIyQC-5J1XJj8fNMrtRbG9yEMWiX5NB-i_67aln7tmMAHtmGKtxe197TpPA

    And this is request:

    {

    error
    {
    code"-2147024891, System.UnauthorizedAccessException"
    message"Access denied. You do not have permission to perform this action or access this resource."
    }
    -
    }

    Please help me.

    Phuong Nguyen

    Thursday, April 16, 2015 4:24 AM