Method: Numerous#userPhoto
- Defined in:
- lib/numerousapp.rb
#userPhoto(imageDataOrReadable, mimeType: 'image/jpeg') ⇒ Hash
Note:
the server enforces an undocumented maximum data size. Exceeding the limit will raise a NumerousError (HTTP 413 / Too Large)
Set the user’s photo
853 854 855 856 857 |
# File 'lib/numerousapp.rb', line 853 def userPhoto(imageDataOrReadable, mimeType:'image/jpeg') api = makeAPIcontext(APIInfo[:user], :photo) mpart = { :f => imageDataOrReadable, :mimeType => mimeType } return simpleAPI(api, multipart: mpart) end |