Skip to Content

Get All AJCs

GET
/v1/ajcfinder/{userId}
Parameters
string


api token is required field
string


userId 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}"
            };
            
            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}")
		.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
                        {
  "OneStopCenterList": [
    {
      "ID": "string",
      "Name": "string",
      "Address1": "string",
      "Address2": "string",
      "City": "string",
      "StateAbbr": "string",
      "StateName": "string",
      "Zip": "string",
      "Phone": "string",
      "Distance": "string",
      "ProgramType": "string",
      "ProgramTypeNValue": "string",
      "OpenHour": "string",
      "CenterIsOpen": "string",
      "VeteranRep": "string",
      "BusinessRep": "string",
      "GeneralEmail": "string",
      "VetRepEmail": "string",
      "BusRepEmail": "string",
      "YSContact": "string",
      "YSContactEmail": "string",
      "LastUpdated": "string",
      "WhyClosed": "string",
      "CenterStatus": "string",
      "Latitude": 25.1,
      "Longitude": 26.1,
      "WebSiteUrl": "string",
      "Fax": "string",
      "IsValid": "string",
      "Area": "string",
      "YouthServices": [
        {
          "ServiceName": "string",
          "ServiceNValue": "string"
        }
      ],
      "BusinessServices": [
        {
          "ServiceName": "string",
          "ServiceNValue": "string"
        }
      ],
      "WorkersServices": [
        {
          "ServiceName": "string",
          "ServiceNValue": "string"
        }
      ]
    }
  ],
  "RecordCount": 1,
  "AreaValidationErr": "string",
  "ContainsDuplicate": "string",
  "AreaRecordCountList": [
    {
      "Item": "string",
      "Count": 2,
      "Value": "string"
    }
  ],
  "CenterTypeCountList": {
    "UndoList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ],
    "FilterList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ]
  },
  "BusinessServicesList": {
    "UndoList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ],
    "FilterList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ]
  },
  "WorkersServicesList": {
    "UndoList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ],
    "FilterList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ]
  },
  "YouthServicesList": {
    "UndoList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ],
    "FilterList": [
      {
        "Item": "string",
        "Count": 2,
        "Value": "string"
      }
    ]
  }
}
                    
                        <AJCFinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XPAND.CareerOneStop.WebApi.ViewModels">
  <AreaRecordCountList>
    <ItemCount>
      <Count>2</Count>
      <Item>string</Item>
      <Value>string</Value>
    </ItemCount>
  </AreaRecordCountList>
  <AreaValidationErr>string</AreaValidationErr>
  <BusinessServicesList>
    <FilterList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </FilterList>
    <UndoList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </UndoList>
  </BusinessServicesList>
  <CenterTypeCountList>
    <FilterList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </FilterList>
    <UndoList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </UndoList>
  </CenterTypeCountList>
  <ContainsDuplicate>string</ContainsDuplicate>
  <OneStopCenterList>
    <OneStopCenter>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Area>string</Area>
      <BusRepEmail>string</BusRepEmail>
      <BusinessRep>string</BusinessRep>
      <BusinessServices>
        <Service>
          <ServiceNValue>string</ServiceNValue>
          <ServiceName>string</ServiceName>
        </Service>
      </BusinessServices>
      <CenterIsOpen>string</CenterIsOpen>
      <CenterStatus>string</CenterStatus>
      <City>string</City>
      <Distance>string</Distance>
      <Fax>string</Fax>
      <GeneralEmail>string</GeneralEmail>
      <ID>string</ID>
      <IsValid>string</IsValid>
      <LastUpdated>string</LastUpdated>
      <Latitude>25.1</Latitude>
      <Longitude>26.1</Longitude>
      <Name>string</Name>
      <OpenHour>string</OpenHour>
      <Phone>string</Phone>
      <ProgramType>string</ProgramType>
      <ProgramTypeNValue>string</ProgramTypeNValue>
      <StateAbbr>string</StateAbbr>
      <StateName>string</StateName>
      <VetRepEmail>string</VetRepEmail>
      <VeteranRep>string</VeteranRep>
      <WebSiteUrl>string</WebSiteUrl>
      <WhyClosed>string</WhyClosed>
      <WorkersServices>
        <Service>
          <ServiceNValue>string</ServiceNValue>
          <ServiceName>string</ServiceName>
        </Service>
      </WorkersServices>
      <YSContact>string</YSContact>
      <YSContactEmail>string</YSContactEmail>
      <YouthServices>
        <Service>
          <ServiceNValue>string</ServiceNValue>
          <ServiceName>string</ServiceName>
        </Service>
      </YouthServices>
      <Zip>string</Zip>
    </OneStopCenter>
  </OneStopCenterList>
  <RecordCount>1</RecordCount>
  <WorkersServicesList>
    <FilterList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </FilterList>
    <UndoList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </UndoList>
  </WorkersServicesList>
  <YouthServicesList>
    <FilterList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </FilterList>
    <UndoList>
      <ItemCount>
        <Count>2</Count>
        <Item>string</Item>
        <Value>string</Value>
      </ItemCount>
    </UndoList>
  </YouthServicesList>
</AJCFinder>