Skip to Content

Get AJC Details by ID

GET
/v1/ajcfinder/{userId}/{jobCenterId}
Parameters
string


api token is required field
string


userId is required field
string

ex: 22414

jobCenterId is required field

Example Code

using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;

namespace CareerOneStopAPISample
{
    class Program
    {
        static void Main(string[] args)
        {
            CreateRequest().Wait();
        }
        private static async Task CreateRequest()
        {
    
            var uri = new UriBuilder(Uri.UriSchemeHttps, "api.careeronestop.org")
            {
                Path = "/v1/ajcfinder/{userId}/{jobCenterId}"
            };
            
            using (var http = new HttpClient())
            {
                http.DefaultRequestHeaders.Accept.Clear();
                http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "API Token");
                http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                var response = await http.GetAsync(uri.Uri).ConfigureAwait(false);
                if (response.IsSuccessStatusCode)
                {
                    var result = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
                }
            }
        }
    }
}
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class CareerOneStopAPISample {
    public static void main(String[] args) throws IOException, URISyntaxException {
	URI uri = new URIBuilder()
		.setScheme("https")
		.setHost("api.careeronestop.org")
		.setPath("/v1/ajcfinder/{userId}/{jobCenterId}")
		.build();
	CloseableHttpResponse response = null;
	HttpGet httpGet = null;
	try {
		CloseableHttpClient httpClient = HttpClients.createDefault();
		httpGet = new HttpGet(uri);
		httpGet.setHeader("Content-Type","application/json");
		httpGet.setHeader("Authorization", "Bearer API Token");
		response = httpClient.execute(httpGet);
		HttpEntity entity = response.getEntity();
		System.out.println(EntityUtils.toString(entity));
	} finally {
		if(httpGet != null) httpGet.releaseConnection();
		if(response != null) response.close();
	}
   }
}


Response Structure
                        {
  "OneStopCentersInfo": {
    "OneStopCenterInfo": [
      {
        "Name": "string",
        "Value": "string"
      }
    ],
    "OneStopCenterGenInfo": [
      {
        "Name": "string",
        "Value": "string"
      }
    ]
  },
  "OneStopCenterCategoriesInfo": {
    "SiteResource": [
      {
        "Name": "string",
        "Value": "string"
      }
    ],
    "YouthServices": {
      "FindingWork": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "SummerOpportunities": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "GettingSkillsAndTraining": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "OtherResources": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "PlanningYourCareer": [
        {
          "Name": "string",
          "Value": "string"
        }
      ]
    },
    "WorkersServices": {
      "DealingLossJob": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "GettingSkillsAndEducation": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "OtherResources": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "PlanningYourCareer": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "FindingWork": [
        {
          "Name": "string",
          "Value": "string"
        }
      ]
    },
    "BusinessServices": {
      "RecruitingEmployees": [
        {
          "Name": "string",
          "Value": "string"
        }
      ],
      "BusinessResources": [
        {
          "Name": "string",
          "Value": "string"
        }
      ]
    }
  },
  "AJCServicesContacts": {
    "YouthServiceContacts": [
      {
        "Name": "string",
        "Value": "string"
      }
    ]
  }
}
                    
                        <OneStopCenterDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XPAND.CareerOneStop.WebApi.ViewModels">
  <AJCServicesContacts>
    <YouthServiceContacts>
      <NameValue>
        <Name>string</Name>
        <Value>string</Value>
      </NameValue>
    </YouthServiceContacts>
  </AJCServicesContacts>
  <OneStopCenterCategoriesInfo>
    <BusinessServices>
      <BusinessResources>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </BusinessResources>
      <RecruitingEmployees>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </RecruitingEmployees>
    </BusinessServices>
    <SiteResource>
      <NameValue>
        <Name>string</Name>
        <Value>string</Value>
      </NameValue>
    </SiteResource>
    <WorkersServices>
      <DealingLossJob>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </DealingLossJob>
      <FindingWork>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </FindingWork>
      <GettingSkillsAndEducation>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </GettingSkillsAndEducation>
      <OtherResources>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </OtherResources>
      <PlanningYourCareer>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </PlanningYourCareer>
    </WorkersServices>
    <YouthServices>
      <FindingWork>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </FindingWork>
      <GettingSkillsAndTraining>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </GettingSkillsAndTraining>
      <OtherResources>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </OtherResources>
      <PlanningYourCareer>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </PlanningYourCareer>
      <SummerOpportunities>
        <NameValue>
          <Name>string</Name>
          <Value>string</Value>
        </NameValue>
      </SummerOpportunities>
    </YouthServices>
  </OneStopCenterCategoriesInfo>
  <OneStopCentersInfo>
    <OneStopCenterGenInfo>
      <NameValue>
        <Name>string</Name>
        <Value>string</Value>
      </NameValue>
    </OneStopCenterGenInfo>
    <OneStopCenterInfo>
      <NameValue>
        <Name>string</Name>
        <Value>string</Value>
      </NameValue>
    </OneStopCenterInfo>
  </OneStopCentersInfo>
</OneStopCenterDetails>