ClientId not updated when deploying - User injected null

人走茶凉 提交于 2019-12-05 10:31:03

If you are testing your endpoint in API Explorer you need to add it's ID as one of the accepted ones:

 @Api(name = "myApi",
     version = "v1",
     ...
     clientIds = {Constants.API_EXPLORER_CLIENT_ID, yourOtherIds}

Where Constants.API_EXPLORER_CLIENT_ID is

     public static final String API_EXPLORER_CLIENT_ID = com.google.api.server.spi.Constant.API_EXPLORER_CLIENT_ID;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!