1.0.11 • Published 9 years ago

sv-api v1.0.11

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

sv-api

Exposes operations supported by StudentVerification RESTful API. Operations are grouped in the following classes: isirs documents requirements

sv-api~isirs

Kind: inner class of sv-api

new isirs()

Represents functions associated with ISIR files

isirs.upload(rootUrl, authorization, awardYear, content) ⇒ function

upload a file as application/octet-stream content

Kind: static method of isirs
Returns: function - A promise. Any response whose status code is not 2xx will result in a rejected promise.

ParamTypeDescription
rootUrlstringurl of awardletter API
authorizationstringheader value
awardYearstringAward/aid year in YYYY-YYYY format; ex. 2015-2016
contentobjectJSON content to be uploaded

isirs.getCorrections(rootUrl, authorization, startDate, endDate, targetPath) ⇒ function

Get batched ISIR corrections for a given start date and end date

Kind: static method of isirs
Returns: function - A promise. The promise will resolve with an array of objects containing the metadata associated with 0 or more ISIR correction files. Each array element is an object with the following properties: ' { name: 'file name', type: 'file type', content: file_content } If a targetPath is not provided, the content property will be a memorystream object contain the contents of the file (refer to https://github.com/JSBizon/node-memorystream). Any response with a status code that is not 2xx will result in a rejected promise.

ParamTypeDescription
rootUrlstringurl of awardletter API
authorizationstringheader value
startDatestringA start date in MM-DD-YYYY format
endDatestringAn end date in MM-DD-YYYY format
targetPathstringAn optional target path in which files will be written

sv-api~documents

Kind: inner class of sv-api

new documents()

Represents functions associated with student documents

documents.getMetadata(rootUrl, authorization, documentId) ⇒ function

Get student document metadata.

Kind: static method of documents
Returns: function - A promise. The promise will resolve with the metadata in JSON string format. Any response with a status code that is not 2xx will result in a rejected promise.

ParamTypeDescription
rootUrlstringurl of awardletter API
authorizationstringheader value
documentIdstringThe unique Id of the student document

documents.getFiles(rootUrl, authorization, documentId, targetPath) ⇒ function

getFiles description

Kind: static method of documents
Returns: function - A promise. Any response with a status code that is not 2xx will result in a rejected promise.

ParamType
rootUrlstring
authorizationstring
documentIdstring
targetPathstring

documents.get() ⇒ function

Get student document metadata and associated file(s).

Kind: static method of documents
Returns: function - A promise. The promise resolves to an array of results. The first element will contain the metadata while the second element will contain the file(s). Any response with a status code that is not 2xx will result in a rejected promise.

sv-api~requirements

Kind: inner class of sv-api

new requirements()

Represents functions associated with student requirements/tasks

1.0.11

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago