Omicron Llama

Coding all day, every day.

SharePoint from iOS – a new library – SPMobile

Cut to the chase: github is here:

I have spent a bit of time recently tidying up and expanding the code possibilities with my iOS library – SPRESTApi.

The changes have allowed me to extend it so it’s no longer just a REST API helper, but can be used to called the ASMX web services in SharePoint. This effectively lets it work with any version since SharePoint 2007.

And in order to enable it to work with all the way back to 2007, I’ve extended the authentication mechanism to be able to log in using Forms Based Authentication.

I have therefore refactored the code quite a lot and created a new Github repository – available here: (I’ve also learnt a fair bit more about Git since my last try too, now quite enjoying it! :D)

Code samples of authenticating into FBA and executing web service requests are all on the README on the Github site.

With reference to my last blog post, this is confirmation that I’m no longer maintaining SPRESTApi, but I’ll keep it there for future reference (and for historical purposes, so I can laugh at my poor learning of git in the future).

3 thoughts on “SharePoint from iOS – a new library – SPMobile

  • […] initial version of an attempt at this API. This version is now deprecated, please use the version detailed here […]

  • Sarfraz says:


    You really did a great job. Mobile integration is easy using your code. But i would like to ask one more scenario.It connects to SharePoint 2013 Online. I have Office 365 Online and implemented SSO single-sign-on (OneLogin). when i try to connect SharePoint2013 online. It dose not connect. Could you please tell me what i am missing or what i have to add more into your library to connect to SharePoint 2013 online ??

  • Avneesh Minocha says:

    I am making a post request of checkout with the below url but getting error saying don’t use GET request. how it can be possible. i have no idea how this can be fix please help asap.'/myfolder/afile.pdf‘)/checkout


    Accept = “application/json;odata=verbose”;
    “Content-Type” = “application/json;odata=verbose”;

    Cookie = “FedAuth=77u/PD94bWGluZz0idXRmLTgiPz48U1A+RmFscTR4=; rtFa=DRysCNqtVzAA==”;


    “X-RequestDigest” = “0xE342A693C3C8A2DC544529F507882C79CEE5B5316BB03B05D9D36182C393E6FAD230071C4AD,10 Jun 2016 06:35:11 -0000”;


    {“error”:{“code”:”-1, Microsoft.SharePoint.Client.ClientServiceException”,”message”:{“lang”:”en-US”,”value”:”The HTTP method ‘GET’ cannot be used to access the resource ‘CheckOut’. The operation type of the resource is specified as ‘Default’. Please use correct HTTP method to invoke the resource.”}}}

Leave a Reply

Your email address will not be published. Required fields are marked *