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?