Search code examples
swiftgoogle-apigoogle-drive-apigoogle-workspace

Adding google drive integration for user signup


I was wanting to start creating an app for users to store files into their drive acc.

I was looking at Google's API here GoogleAPIClientForREST.podspec

I have created a pod file etc. However can someone tell me if I need the whole API file or just certain parts?

Also I see that this is GSuite related (as in I found it through here: G Suite APIs for iOS), though this was the only way to access the API.

  • Do I have to pay for the API access?
  • Like paying for GSuite?

Solution

  • Its best to not pick apart the file until you actually know what its doing. A lot of these libraries are interwoven. That being said. The APIs themselves are normally standalone. So if you are not going to be using all of the apis you should be able to remove them.

    These for example

    s.subspec 'Books' do |sp|
        sp.dependency 'GoogleAPIClientForREST/Core'
        sp.source_files = 'Source/GeneratedServices/Books/*.{h,m}'
      end
      s.subspec 'Calendar' do |sp|
        sp.dependency 'GoogleAPIClientForREST/Core'
        sp.source_files = 'Source/GeneratedServices/Calendar/*.{h,m}'
      end
    

    I have personally never tried to remove them. I suggest you start with one or two and work your way down.

    No you don't need to pay to access google drive api. The code for Gsuite should be the same unless you are looking at something that has domain wide delegation set up.