Test job posting outside of your job posting service

One of the things you may want to do, particularly as a developer is to test how your website responds when the jobs are delivered from the job posting service e.g. Broadbean.

However, as a developer you may not have access to the posting service and therefore may not be able to send test jobs across.

You can of course send jobs to JobRelay without the need to use a job posting service. You just need to send the data in the correct format, with the correct posting credentials and in the correct format.

What software can I use to do a test posting?

We recommend you use Postman. This is a great application when working with APIs and allows you to send data to API and see what the response is. You can download Postman here.

To send a test post using Postman, you first create a new HTTP request. This should be a “POST” request and the posting URL should be:

https://jobrelay.io/api/jobrelay/

You should then send the data in the following format, add the JSON below in the body of the request, as raw data set to JSON format.

{
    "command": "add",
    "subscription_id": "0",
    "license_key": "0000",
    "site_url": "domain.com/",
    "password":"testpassword",
    "job_reference":"test_ref",
    "job_title": "Test job title",
    "job_description": "<p>This is the <strong>detailed</strong> <a href=\"#\">description</a></p>",
    "job_short_description": "<p>This is the short description.</p>",
    "contact_name": "Bob Smith",
    "contact_email": "bob@smith.com",
    "contact_telephone": "01234 567 890",
    "contact_url": "www.test.com",
    "company_name": "Highrise Digital",
    "company_website": "https://url.com",
    "company_tagline": "WordPress development",
    "company_twitter": "@highrisedigital",
    "company_logo": "https://domain.com/image.jpg",
    "company_video": "https://www.youtube.com/watch?v=Z6B5jnpJUFg",
    "expiry_date": "2024-12-10",
    "start_date": "2022-08-09",
    "application_email": "application@domain.com",
    "application_url": "http://www.url.com/ad.asp?adid=12345123",
    "salary_currency": "GBP",
    "salary_from": "25000",
    "salary_to": "30000",
    "salary_per": "annum",
    "salary_benefits": "Bonus and Pension",
    "salary": "£25000 - £30000 per annum + Bonus and Pension",
    "featured": "0",
    "job_location": "London",
    "job_type": "Full time",
    "job_industry": "Accountancy",
    "job_source":"Broadbean"
}

Note the following fields, where the values of these fields should be replaced with your sites connection details:

The command field value can be changed to delete in order to remove a job post.