ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
72 lines (34 loc) • 874 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getQueryParam](./ibm-cloud-sdk-core.getqueryparam.md)
## getQueryParam() function
Return a query parameter value from a URL
**Signature:**
```typescript
export declare function getQueryParam(urlStr: string, param: string): string;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
urlStr
</td><td>
string
</td><td>
the url string.
</td></tr>
<tr><td>
param
</td><td>
string
</td><td>
the name of the query parameter whose value should be returned
</td></tr>
</tbody></table>
**Returns:**
string
the value of the "param" query parameter