# OAuth and API

**URL:** <https://forum.xojo.com/t/oauth-and-api/42421>\
**Category:** General\
**Created:** [March 10, 2018, 5:14pm UTC](https://forum.xojo.com/t/oauth-and-api/42421 "2018-03-10T17:14:01Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![Michael\_W](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@Michael\_W](https://forum.xojo.com/u/Michael_W)\
**Post date:** [August 19, 2020, 7:29pm UTC](https://forum.xojo.com/t/oauth-and-api/42421/24 "2020-08-19T19:29:26Z")

</div>

Yup, line is:

```auto
Dim fac As New Chilkat.FileAccess

success = fac.WriteEntireTextFile(prefFile.ShellPath,json.Emit(),"utf-8",False)

```

The output of the `ShellPath` is exactly `/Users/mwilliams/Library/Application\ Support/com.customapp.oauth/ms\-tokens/microsoftGraph.json`

FYI, I’ve also tried `NativePath` and other manual paths. Unfortunately the documentation regarding the root context of `WriteEntireTextFile` is opaque at best.

---

_[View the full topic](https://forum.xojo.com/t/oauth-and-api/42421)._
