i want to search product in cms (html page or module)

Hello, I’m new to both HubSpot and community.

i created a website page in cms. path is:

(marketing - Website - Website pages)

the page is (https://123456.hubspotpagebuilder.com/product?name=ww )

in the page. i want search product(the products in crm) and list.

I tried same ways and failed。

【The first way】

---------------------------------------------------------------------------

use hubl。

for get "name=ww ", I found a [HTTP request variables]:(request.query),

but request.query = “” ???

and:

request.query_dict = []

request.full_url: https://123456.hubspotpagebuilder.com/product

request.path_and_query: /product?

---------------------------------------------------------------------------

【The second way】

---------------------------------------------------------------------------

use JavaScript and hubl

in js,i can get the query data:

searchParams = new URLSearchParams(window.location.search);

but

i don’t know how can i use a javascript variable in hubl。

---------------------------------------------------------------------------

【The third way】

---------------------------------------------------------------------------

use JavaScript

in js,i can get the query data:

searchParams = new URLSearchParams(window.location.search);

and

the search api for product is

https://api.hubapi.com**/crm/v3/objects/products/search**?name=ww。

i don’t know how can i create a Authorization

i try to use https://app.hubspot.com/oauth/authorize

but

How to fill in the parameters?

client_id:123456?

scope:products?

i have no 【redirect_uri】

in the response,i get 【6fff48e3-0001-b3ba-bfb2-018d43cc2cf3】

set the key to search api :

{Authorization:6fff48e3-0001-b3ba-bfb2-018d43cc2cf3}

and send(post),response is:

{
“status”: “error”,
“message”: “Authentication credentials not found. This API supports OAuth 2.0 authentication and you can find more details at https://developers.hubspot.com/docs/methods/auth/oauth-overview”,
“correlationId”: “a1f12fb8-a665-44f3-ac18-570723749b47”,
“category”: “INVALID_AUTHENTICATION”
}

---------------------------------------------------------------------------

Can somebody help me?

Hi, @artair :waving_hand: Welcome to our community! Thank you for including the steps you’ve taken.

I have a few follow-ups to help our community have more context:

For option 1 – have you tried something like {{ request.query_dict.name }} to get the ‘name’ parameter?

For option 3 – here is the documentation on working with OAuth and HubSpot. Services like beeceptor.com can be helpful for testing purposes If you don’t have a server to handle the redirect

Thank you for the additional information! — Jaycee