siegesmund / SwiftDDP

A Meteor client, written in Swift
MIT License
145 stars 60 forks source link

Where does server method need to be located? #20

Closed jeffrey-lin closed 8 years ago

jeffrey-lin commented 8 years ago

I currently have a JavaScript API that is in my server directory for Meteor. Whenever I try to call a method from that API, SwiftDDP says that the method does not exist. Where does the server method need to be located?

This is what I'm trying to do:

  1. Press "Login" button on Storyboard.
  2. Connect to 3rd party API for OAuth 2.0 by creating a JavaScript object.
  3. Call method for the JavaScript object that does the URL redirection, etc.
  4. Allow user to use the rest of the app's functionalities.

I need to create a JavaScript object in swift by using the API in my Meteor server. Is this possible?