Added auth code for write API
Merge branch 'my'