@@ -1922,6 +1922,45 @@ class Particle {
19221922 } ) ;
19231923 }
19241924
1925+ /**
1926+ * Get product device's configuration
1927+ * @param {Object } options Options for this API call
1928+ * @param {String } options.product Config for this product ID or slug
1929+ * @param {String } options.auth Access Token
1930+ * @param {String } options.deviceId Device ID to access
1931+ * @param {Object } [options.headers] Key/Value pairs like `{ 'X-FOO': 'foo', X-BAR: 'bar' }` to send as headers.
1932+ * @param {Object } [options.context] Request context
1933+ * @returns {Promise } A promise
1934+ */
1935+ getProductDeviceConfiguration ( { auth, product, deviceId, headers, context } ) {
1936+ return this . get ( {
1937+ uri : `/v1/products/${ product } /config/${ deviceId } ` ,
1938+ auth,
1939+ headers,
1940+ context
1941+ } ) ;
1942+ }
1943+
1944+ /**
1945+ * Get product device's configuration schema
1946+ * @param {Object } options Options for this API call
1947+ * @param {String } options.product Config for this product ID or slug
1948+ * @param {String } options.auth Access Token
1949+ * @param {String } options.deviceId Device ID to access
1950+ * @param {Object } [options.headers] Key/Value pairs like `{ 'X-FOO': 'foo', X-BAR: 'bar' }` to send as headers.
1951+ * @param {Object } [options.context] Request context
1952+ * @returns {Promise } A promise
1953+ */
1954+ getProductDeviceConfigurationSchema ( { auth, product, deviceId, headers, context } ) {
1955+ headers . accept = 'application/schema+json' ;
1956+ return this . get ( {
1957+ uri : `/v1/products/${ product } /config/${ deviceId } ` ,
1958+ auth,
1959+ headers,
1960+ context
1961+ } ) ;
1962+ }
1963+
19251964 /**
19261965 * Set product configuration
19271966 * @param {Object } options Options for this API call
0 commit comments