Skip to content

Methods (for developers)

uniray7 edited this page Oct 16, 2017 · 2 revisions

User Management:

  • User.remoteMethod('authFacebookToken') [no_testcase]: authorized by FB
  • User.remoteMethod('uploadProfilePhoto') [no_testcase]: upload user's photo
  • User.remoteMethod('getProfile') [no_testcase]: get user profile
  • User.remoteMethod('profileQuery') [no_testcase]: for profile page to loading metadata of posts from the user
  • User.remoteMethod('createFeedback') [disabled]
  • password: [problems]
    • User.remoteMethod('changePassword')
    • User.remoteMethod('requestResetPassword')
    • User.remoteMethod('handleResetPassword')
  • follow: [disabled]
    • User.remoteMethod('query'): for homepage to loading metadata of posts from the user's following
    • User.remoteMethod('follow')
    • User.remoteMethod('unfollow')
    • User.remoteMethod('listFollowers')
    • User.remoteMethod('listFollowing')

Media

  • Media.remoteMethod('createPanoPhoto')
  • Media.remoteMethod('createLivePhoto')
    • URL: http://$domainName/api/media/panophoto?access_token=$token
    • Header: Content-Type=multipart/form-data
    • Body:
      • caption: 'test for livephoto'
      • width: '480'
      • height: '640'
      • imgArrBoundary: 'papayabird'
      • orientation: $orientationCode
      • action: 'horizontal'
      • locationName: 'Home Sweet Home'
      • locationLat: '25.05511'
      • locationLng: '121.61171'
      • thumbnail: '$PATH/livephoto_thumb.jpg'
      • image: '$PATH/panophoto.jpg.zip'
    • return:
      • mediaId: 'ab90b0d91414f000'
  • Media.remoteMethod('findMediaById')
  • Media.remoteMethod('like') [disabled]
  • Media.remoteMethod('unlike') [disabled]
  • Media.remoteMethod('getLikeList') [disabled]
  • delete?
  • update??
Clone this wiki locally