@@ -2027,77 +2027,3 @@ curl -X GET "https://api.pipedream.com/v1/connect/{your_project_id}/triggers/dep
20272027 }
20282028}
20292029```
2030-
2031- ### Projects
2032-
2033- #### Retrieve project info
2034-
2035- Retrieve the configuration for a specific project
2036-
2037- ```
2038- GET /{project_id}/info
2039- ```
2040-
2041- ##### Path parameters
2042-
2043- ` project_id ` ** string**
2044-
2045- [ The project's ID] ( /projects#finding-your-projects-id )
2046-
2047- ##### Examples
2048-
2049- <Tabs items = { [' TypeScript' , ' Node.js' , ' HTTP (cURL)' ]} >
2050- <Tabs.Tab >
2051- ``` typescript
2052- import { createBackendClient } from " @pipedream/sdk/server" ;
2053-
2054- const pd = createBackendClient ({
2055- environment: " development" , // change to production if running for a test production account, or in production
2056- credentials: {
2057- clientId: " {oauth_client_id}" ,
2058- clientSecret: " {oauth_client_secret}" ,
2059- },
2060- projectId: " {your_project_id}"
2061- });
2062-
2063- const info = await pd .getProjectInfo ({
2064- project_id: " {your_project_id}" ,
2065- });
2066- ```
2067- </Tabs.Tab >
2068- <Tabs.Tab >
2069- ``` javascript
2070- import { createBackendClient } from " @pipedream/sdk/server" ;
2071-
2072- const pd = createBackendClient ({
2073- environment: " development" , // change to production if running for a test production account, or in production
2074- credentials: {
2075- clientId: " {oauth_client_id}" ,
2076- clientSecret: " {oauth_client_secret}" ,
2077- },
2078- projectId: " {your_project_id}"
2079- });
2080-
2081- const info = await pd .getProjectInfo ({
2082- project_id: " {your_project_id}" ,
2083- });
2084- ```
2085- </Tabs.Tab >
2086- <Tabs.Tab >
2087- ``` bash
2088- # First, obtain an OAuth access token
2089- curl -X POST https://api.pipedream.com/v1/oauth/token \
2090- -H " Content-Type: application/json" \
2091- -d ' {
2092- "grant_type": "client_credentials",
2093- "client_id": "{oauth_client_id}",
2094- "client_secret": "{oauth_client_secret}"
2095- }'
2096-
2097- # The response will include an access_token. Use it in the Authorization header below.
2098-
2099- curl -X POST https://api.pipedream.com/v1/connect/{project_id}/info \
2100- -H " Authorization: Bearer {access_token}" \
2101- ```
2102- </Tabs.Tab >
2103- </Tabs >
0 commit comments