With TutorCruncher Socket, you can list your Tutors online, allow Clients to enquire and directly request a Tutor, and also allow Clients to book Lessons. Socket uses TutorCruncher’s API and you can look at this website for an example of how Socket could look on your website, as well as examples of different features of Socket in action.
There are two ways of accessing TutorCruncher's API - either straight through the API documentation or by using TutorCruncher Socket Server.
Currently there is nothing that can be accessed through the API that can't be accessed with TutorCruncher Socket Server, so we recommend using that.
To enable TutorCruncher Socket, follow these steps, navigate to System > Settings > TutorCruncher API > API Integrations, and click the Add Socket Integration button.
With that selected, you should see the following:
There are three main ways of utilising the TutorCruncher socket for your website, see the links below for guides on how to set up...
Where do I find my public API key?
Your API key can be found when you select your Socket integration from the 'Integrations' panel found within System > Settings > TutorCruncher API > API.
An example of an 'Integrations' panel.
Your public API key is the one included in the Webhook URL between
In the example above, it's
123456789abc, and will be used to integrate the Socket integration into your website.
You can also use
'9c79f14df986a1ec693c' as a test key to work with any Socket integration. Please note that this will not submit anything to your TutorCruncher account.
How do I import Socket onto my website?
The first step is to import socket into the page.
Anywhere on the page between either the
<body></body> tags, insert the following line:
We recommend putting it just before the last
</body> tag, so it's easy to find. For instance:
<body> <!-- Rest of your webpage code --> <script src="https://cdn.tutorcruncher.com/socket/latest/socket.js"></script> </body>
How do I add an allowed domain to socket?
Because your API key is public, anyone who viewed your website could potentially use your key to display your Tutors on their own website. To prevent this, we check that the website you are trying to load Socket from is the same one that was entered into TutorCruncher.
You can add more via System > Settings > TutorCruncher API > API, before selecting your Socket integration from the list and clicking Edit. You can then add the domain to the list under 'Allowed Domains'.
How do I add Socket in when building my website?
Virtually all major website builders (i.e. Wix, Wordpress, SquareSpace etc.) allow you to add an element for custom HTML code - simply add one of those in, and then paste in the code snippet from one of our examples to get started.