I have been hired by an organization who subscribes to IronWiFi services, to create a daily update of an IronWiFi user used for guest internet access in their office for the day.
I have been using the page at https://market.mashape.com/ironwifi/ironwifi to test endpoints, but I can’t seem to get it to work. I’ve been working with the CHANGE PHONE endpoint as a test with <strong>my own account</strong>, and I have the following questions:
I am not clear what value I should insert in the <strong>account_id</strong> field. Where can I find this value?<br/>
When I click the <strong>AUTHORIZE</strong> button, I enter my IronWiFi user credentials, and it replaces the first <strong>Authorization</strong> input field with <strong>Basic</strong> followed by a token. Is this the correct behaviour?<br/>
What token do I place in the second <strong>authorization</strong> input box? One of the <strong>X-Mashape-Key</strong> values that I created on Mashup?<br/><br/>
<p>Now, <strong>CURIOUSLY</strong>, if I remove the two password parameters at the end (new_password= and old_password=), I get the following result:</p>
<strong>I’ve been working with your console for hours.</strong> If you could just answer the three questions that I posed in my original message that would help. I can’t make any sense of your API!
<p>OK…been messing around with this and I think I’m almost there. I want to change the password for a user, but the response is :</p>
<p>Here is the command that caused the error:</p>
<p>Now, <strong>CURIOUSLY</strong>, if I remove the two password parameters at the end (new_password= and old_password=), I get the following result:</p>
<p>…So the problem appears to be with the last two parameters. I’ve checked the syntax and it looks correct. What am I doing wrong?</p>
<p>Thanks for the example. Unfortunately, when I attempt to get Account_ID by going to https://console.ironwifi.com/api/account I get </p>
<quote>{“type”:“http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",“title”:“Forbidden”,“status”:403,“detail”:"Forbidden”}</quote>
<p>I’m logged in using the company’s admin account. Why am I getting a 403 (Forbidden) error?</p>
Account_ID is the company_id returned when you fetch /api/account
Please see examples on this page and generate API key in our Console -> Account:
https://www.ironwifi.com/documentation/api/
To change your phone number:
curl ‘https://console.ironwifi.com/api/account/ACCOUNT_ID’ -X PATCH -H ‘origin: https://console.ironwifi.com’ -H ‘authorization: Bearer API_KEY’ -H ‘content-type: application/json;charset=UTF-8’ -H ‘accept: application/json, text/plain, /’ -H ‘authority: console.ironwifi.com’ --data-binary ‘{“phone”:"+1234567"}’
<strong>I’ve been working with your console for hours.</strong> If you could just answer the three questions that I posed in my original message that would help. I can’t make any sense of your API!
Hi Patrick,
easiest to start with our API is to open our Console, use Chrome Developer tools and watch individual API calls.
You can send the API calls directly to https://console.ironwifi.com/api
Please send any support requests directly to support@ironwifi.com
Martin