GoogleAPIClientForREST 1.3.0 GTLRService authorizer missing

1,461 views
Skip to first unread message

Ryan Heitner

unread,
Jun 22, 2017, 7:27:44 AM6/22/17
to Google APIs Client Library for Objective-C
In IOS GoogleAPIClientForREST does not have a field for   authorizer for GTLRSheetsService

The sample code in the quickstart guide is for version 1.2.1

Could someone provide sample code for a 1.3 query please or point me in the direction of release notes 



Thomas Van Lenten

unread,
Jun 22, 2017, 9:57:38 AM6/22/17
to Google APIs Client Library for Objective-C
The authorizer hasn't been removed.  We got one other report of this, but no one has been able to provide a repo case so we can try and figure out if something is going wrong in their project setup.  If you can make an easy repro case, feel free to open an issue (https://github.com/google/google-api-objectivec-client-for-rest) and attach it so we can help look.

TVL

Thomas Van Lenten

unread,
Jun 22, 2017, 10:56:06 AM6/22/17
to Google APIs Client Library for Objective-C
Is your app mainly Swift?

Is it the Swift code that isn't seeing the authorizer?

Try adding:
  #import <GTMSessionFetcher/GTMSessionFetcher.h>
  #import <GTMSessionFetcher/GTMSessionFetcherService.h>
to your bridging header before any of the GTLR imports, does that "fix" the problem?

I'm wondering if the bridging doesn't like the property being declared using a forward declared objc protocol where it never sees the final definition and so it just silently "drops" it.

TVL

Mark Mckelvie

unread,
Jun 27, 2017, 4:42:44 PM6/27/17
to Google APIs Client Library for Objective-C
I just ran into this issue today and adding:

#import <GTMSessionFetcher/GTMSessionFetcher.h>
#import <GTMSessionFetcher/GTMSessionFetcherService.h>

as you described fixed it for me. 

Thanks!!!

Thomas Van Lenten

unread,
Jun 28, 2017, 10:02:00 AM6/28/17
to Google APIs Client Library for Objective-C
np.  The fact that building a bridging header silently drops properties that use forward declared types was sorta a surprise.  We may change things around to avoid this, sadly trying to do the import is a little complex since the code can be build any number of ways and they can need different style imports to work.

LUKE REAGOR

unread,
Nov 15, 2017, 9:08:22 PM11/15/17
to Google APIs Client Library for Objective-C
I am using GoogleAPIClientForREST 1.3.1 and am having the same issue with my Swift code not seeing the authorizer. Unfortunately, I don't know in which file to add the following lines? Can one of you help?

#import <GTMSessionFetcher/GTMSessionFetcher.h>

#import <GTMSessionFetcher/GTMSessionFetcherService.h>

Thomas Van Lenten

unread,
Nov 16, 2017, 8:23:17 AM11/16/17
to Google APIs Client Library for Objective-C

Sindhu Vannela

unread,
Apr 9, 2018, 7:23:50 AM4/9/18
to Google APIs Client Library for Objective-C
Hi I am facing issue while integrating google sheets in my app.can u help me pls. Any Sample is there pls send to my mail id:    sindh...@gmail.com
Reply all
Reply to author
Forward
0 new messages