Update to ctshryock/MGTwitterEngine

Today I posted my update to ctshryock/MGTwitterEngine which allows you to use the API’s

1
update_profile_image
and
1
update_profile_background_image
. I added to the demo app a window that lets you select an image for either profile image or background image to see it in action.

I had to modify some of the internals to get this to work… originally the

1
_sendRequestWithMethod:path:queryParameters:body:requestType:responseType:
method built the
1
NSMutableRequest
object internally, but to minimize code duplication I split the initial creation of the request into a new method
1
_baseRequestWithMethod:path:queryParameters:
to do that, and added a new method
1
_sendDataRequestWithMethod:path:queryParameters:filePath:body:requestType:responseType:
. Both
1
_sendRequest...
and
1
_sendDataRequest...
call
1
_baseRequest...
to start, with the latter adding the needed form/multipart data to the request.

@ctshryock

About

My name is Clint Shryock. I develop things in Go and Ruby. I live in central Missouri, where the weather is beautiful 4 months of the year.
+-----------------+
|                       |
|      (ノ^_^)ノ      |
|                       |
|   ☜(゚ヮ゚☜)    |
|                       |
|     ౿(ఠ_ఠఎ)    |
|                       |
|        ಠ_ಠ         |
x                      x
  xxx           xxx
       xx    xx
           xx