Skip to content

Latest commit

 

History

History
executable file
·
181 lines (119 loc) · 9.14 KB

CongressionalCommitteePrints.md

File metadata and controls

executable file
·
181 lines (119 loc) · 9.14 KB

Congressional Committee Prints

govinfo.CongressionalCommitteePrints

info All URIs are relative to https://www.govinfo.gov/link link-external.

Method HTTP request Description
cprtHouseFetchUsingGET GET /cprt/{congress}/house/{printnum}/{committee} Query: congress, chamber, house print number, committee
cprtJacketFetchUsingGET GET /cprt/{congress}/{jacketid} Query: congress, jacket number
cprtSenateFetchUsingGET GET /cprt/{congress}/senate/{printnum} Query: congress, chamber, senate print number

cprtHouseFetchUsingGET

Object cprtHouseFetchUsingGET(congress, printnum, committee, opts)

Query: congress, chamber, house print number, committee

Example

const { CongressionalCommitteePrints } = require('govinfo-link-js')

const api = new CongressionalCommitteePrints()

const congress = 56 // Number | This is the numerical Congress number. Sample value is 109.

const printnum = 56 // Number | This is the numerical House committee print number. House prints are not numbered consecutively across committees within a Congress. For example, 109-2 could exist for both the Ways and Means Committee and the Rules and Administration Committee within the 109th Congress. Sample value is 2.

const committee = 'committee_example' // String | This is the name of the House committee. Recommend encoding special characters and spaces (%20). Sample value is Ways and Means.

const opts = {
  linkType: 'linkType_example' // String | This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context.
}

const callback = (error, data, response) => {
  if (error) {
    console.error(error)
  } else {
    console.log(`SUCCESS: ${JSON.stringify(response, null, 2)}`)
  }
}
api.cprtHouseFetchUsingGET(congress, printnum, committee, opts, callback)

Parameters

Name Type Description Notes
congress Number This is the numerical Congress number. Sample value is 109.
printnum Number This is the numerical House committee print number. House prints are not numbered consecutively across committees within a Congress. For example, 109-2 could exist for both the Ways and Means Committee and the Rules and Administration Committee within the 109th Congress. Sample value is 2.
committee String This is the name of the House committee. Recommend encoding special characters and spaces (%20). Sample value is Ways and Means.
linkType String This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context. [optional]

Return type

Object

Authorization

No authorization required.

HTTP request headers

  • Content-Type: application/json
  • Accept: /

cprtJacketFetchUsingGETGET

Object cprtJacketFetchUsingGET(congress, jacketid, opts)

Query: congress, jacket number

Example

const govinfoLinkService = require('govinfo-link-js')

const api = new CongressionalCommitteePrints()

const congress = 56 // Number | This is the numerical Congress number. Sample value is 112.

const jacketid = 'jacketid_example' // String | This is the GPO jacket number. The jacket number is typically listed on the first page in the lower left corner. Jacket number is unique within a Congress. Sample value is 74-558.

const opts = {
  linkType: 'linkType_example' // String | This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context.
}

const callback = (error, data, response) => {
  if (error) {
    console.error(error)
  } else {
    console.log(`SUCCESS: ${JSON.stringify(response, null, 2)}`)
  }
}
api.cprtJacketFetchUsingGET(congress, jacketid, opts, callback)

Parameters

Name Type Description Notes
congress Number This is the numerical Congress number. Sample value is 112.
jacketid String This is the GPO jacket number. The jacket number is typically listed on the first page in the lower left corner. Jacket number is unique within a Congress. Sample value is 74-558.
linkType String This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context. [optional]

Return type

Object

Authorization

No authorization required.

HTTP request headers

  • Content-Type: application/json
  • Accept: /

cprtSenateFetchUsingGETGET

Object cprtSenateFetchUsingGET(congress, printnum, opts)

Query: congress, chamber, senate print number

Example

const govinfoLinkService = require('govinfo-link-js')

const api = new CongressionalCommitteePrints()

const congress = 56 // Number | This is the numerical Congress number. Sample value is 112.

const printnum = 56 // Number | This is the numerical Senate print number. Senate prints are numbered consecutively across committees within a Congress. Sample value is 4.

const opts = {
  linkType: 'linkType_example' // String | This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context.
}

const callback = (error, data, response) => {
  if (error) {
    console.error(error)
  } else {
    console.log(`SUCCESS: ${JSON.stringify(response, null, 2)}`)
  }
}
api.cprtSenateFetchUsingGET(congress, printnum, opts, callback)

Parameters

Name Type Description Notes
congress Number This is the numerical Congress number. Sample value is 112.
printnum Number This is the numerical Senate print number. Senate prints are numbered consecutively across committees within a Congress. Sample value is 4.
linkType String This is the format of the returned document. Default is pdf. Other values are html, mods, premis, details, context. [optional]

Return type

Object

Authorization

No authorization required.

HTTP request headers

  • Content-Type: application/json
  • Accept: /