Class: Singly::Profiles

Inherits:
Object
  • Object
show all
Includes:
Endpoint
Defined in:
lib/singly/api/profiles.rb,
lib/singly/api/profiles/self.rb,
lib/singly/api/profiles/delete.rb,
lib/singly/api/profiles/service.rb,
lib/singly/api/profiles/self_update.rb,
lib/singly/api/profiles/delete_profile.rb,
lib/singly/api/profiles/delete_service.rb

Defined Under Namespace

Classes: Delete, DeleteProfile, DeleteService, Self, SelfUpdate, Service

Instance Attribute Summary

Attributes included from Endpoint

#options, #path

Instance Method Summary collapse

Methods included from Endpoint

#fetch, #initialize, #url, #validate

Instance Method Details

#bodymedia(params = {}) ⇒ Object



32
33
34
# File 'lib/singly/api/profiles.rb', line 32

def bodymedia(params={})
  service(__method__, params)
end

#deleteObject

Delete all the things!



8
9
10
# File 'lib/singly/api/profiles.rb', line 8

def delete
  Singly::Profiles::Delete.new(creds)
end

#dropbox(params = {}) ⇒ Object



36
37
38
# File 'lib/singly/api/profiles.rb', line 36

def dropbox(params={})
  service(__method__, params)
end

#dwolla(params = {}) ⇒ Object



40
41
42
# File 'lib/singly/api/profiles.rb', line 40

def dwolla(params={})
  service(__method__, params)
end

#facebook(params = {}) ⇒ Object



44
45
46
# File 'lib/singly/api/profiles.rb', line 44

def facebook(params={})
  service(__method__, params)
end

#fitbit(params = {}) ⇒ Object



48
49
50
# File 'lib/singly/api/profiles.rb', line 48

def fitbit(params={})
  service(__method__, params)
end

#flickr(params = {}) ⇒ Object



52
53
54
# File 'lib/singly/api/profiles.rb', line 52

def flickr(params={})
  service(__method__, params)
end

#foursquare(params = {}) ⇒ Object



56
57
58
# File 'lib/singly/api/profiles.rb', line 56

def foursquare(params={})
  service(__method__, params)
end

#gcal(params = {}) ⇒ Object



60
61
62
# File 'lib/singly/api/profiles.rb', line 60

def gcal(params={})
  service(__method__, params)
end

#gcontacts(params = {}) ⇒ Object



64
65
66
# File 'lib/singly/api/profiles.rb', line 64

def gcontacts(params={})
  service(__method__, params)
end

#gdocs(params = {}) ⇒ Object



68
69
70
# File 'lib/singly/api/profiles.rb', line 68

def gdocs(params={})
  service(__method__, params)
end

#github(params = {}) ⇒ Object



72
73
74
# File 'lib/singly/api/profiles.rb', line 72

def github(params={})
  service(__method__, params)
end

#gmail(params = {}) ⇒ Object



76
77
78
# File 'lib/singly/api/profiles.rb', line 76

def gmail(params={})
  service(__method__, params)
end

#google(params = {}) ⇒ Object



80
81
82
# File 'lib/singly/api/profiles.rb', line 80

def google(params={})
  service(__method__, params)
end

#gplus(params = {}) ⇒ Object



84
85
86
# File 'lib/singly/api/profiles.rb', line 84

def gplus(params={})
  service(__method__, params)
end

#imgur(params = {}) ⇒ Object



88
89
90
# File 'lib/singly/api/profiles.rb', line 88

def imgur(params={})
  service(__method__, params)
end

#instagram(params = {}) ⇒ Object



92
93
94
# File 'lib/singly/api/profiles.rb', line 92

def instagram(params={})
  service(__method__, params)
end

#klout(params = {}) ⇒ Object



96
97
98
# File 'lib/singly/api/profiles.rb', line 96

def klout(params={})
  service(__method__, params)
end

#linkedin(params = {}) ⇒ Object



100
101
102
# File 'lib/singly/api/profiles.rb', line 100

def linkedin(params={})
  service(__method__, params)
end

#meetup(params = {}) ⇒ Object



104
105
106
# File 'lib/singly/api/profiles.rb', line 104

def meetup(params={})
  service(__method__, params)
end

#paypal(params = {}) ⇒ Object



108
109
110
# File 'lib/singly/api/profiles.rb', line 108

def paypal(params={})
  service(__method__, params)
end

#picasa(params = {}) ⇒ Object



112
113
114
# File 'lib/singly/api/profiles.rb', line 112

def picasa(params={})
  service(__method__, params)
end

#rdio(params = {}) ⇒ Object



116
117
118
# File 'lib/singly/api/profiles.rb', line 116

def rdio(params={})
  service(__method__, params)
end

#reddit(params = {}) ⇒ Object



120
121
122
# File 'lib/singly/api/profiles.rb', line 120

def reddit(params={})
  service(__method__, params)
end

#runkeeper(params = {}) ⇒ Object



124
125
126
# File 'lib/singly/api/profiles.rb', line 124

def runkeeper(params={})
  service(__method__, params)
end

#self(params = nil) ⇒ Object

If params is nil, or only contains required parameters, it sends a GET. Otherwise it sends a POST.



17
18
19
20
21
22
23
24
# File 'lib/singly/api/profiles.rb', line 17

def self(params=nil)
  params ||= {}
  if (params.keys - self.class.required_params).empty?
    Singly::Profiles::Self.new(creds)
  else
    Singly::Profiles::SelfUpdate.new(creds.merge(params))
  end
end

#shutterfly(params = {}) ⇒ Object



128
129
130
# File 'lib/singly/api/profiles.rb', line 128

def shutterfly(params={})
  service(__method__, params)
end

#soundcloud(params = {}) ⇒ Object



132
133
134
# File 'lib/singly/api/profiles.rb', line 132

def soundcloud(params={})
  service(__method__, params)
end

#stocktwits(params = {}) ⇒ Object



136
137
138
# File 'lib/singly/api/profiles.rb', line 136

def stocktwits(params={})
  service(__method__, params)
end

#thirtysevensignals(params = {}) ⇒ Object

SUPPORTED SERVICES SECTION



28
29
30
# File 'lib/singly/api/profiles.rb', line 28

def thirtysevensignals(params={})
  service("37signals", params)
end

#tout(params = {}) ⇒ Object



140
141
142
# File 'lib/singly/api/profiles.rb', line 140

def tout(params={})
  service(__method__, params)
end

#tumblr(params = {}) ⇒ Object



144
145
146
# File 'lib/singly/api/profiles.rb', line 144

def tumblr(params={})
  service(__method__, params)
end

#twitter(params = {}) ⇒ Object



148
149
150
# File 'lib/singly/api/profiles.rb', line 148

def twitter(params={})
  service(__method__, params)
end

#withings(params = {}) ⇒ Object



152
153
154
# File 'lib/singly/api/profiles.rb', line 152

def withings(params={})
  service(__method__, params)
end

#wordpress(params = {}) ⇒ Object



156
157
158
# File 'lib/singly/api/profiles.rb', line 156

def wordpress(params={})
  service(__method__, params)
end

#yammer(params = {}) ⇒ Object



160
161
162
# File 'lib/singly/api/profiles.rb', line 160

def yammer(params={})
  service(__method__, params)
end

#youtube(params = {}) ⇒ Object



164
165
166
# File 'lib/singly/api/profiles.rb', line 164

def youtube(params={})
  service(__method__, params)
end

#zeo(params = {}) ⇒ Object



168
169
170
# File 'lib/singly/api/profiles.rb', line 168

def zeo(params={})
  service(__method__, params)
end