I was asked to build an iOS app based on Fedena (School management system). Their API sample codes are in HTML-JS or RUBY. What I have to do is to pass the arguments (token, URI, etc..) programatically, and upon sending them, the request will return an XML file which I can then parse and view in a tableView.
- How can I pass parameters by code, using AFNetworking?
- How can I fetch the XML file?
This is an example of the API code provided:
<html>
<head>
xhr.open('GET', fedena_server+"/api/users/"+username);
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
xhr.setRequestHeader('Authorization', 'Token token="'+token+'"');
xhr.send();
......