When trying to pull specific details about the products it seems the url is incorrect.
def product(header, uid=None, prod=True): if uid is None: url = env(prod) + '/v2/products' else: url = env(prod) + '/v2/products?productUid=' + uid return Call('get', url, header)
url = env(prod) + '/v2/products?productUid=' + uid
This line doesn't return anything in postman with a valid uid.
The api guide has the url like so:
https://dev.megaport.com/#general-get-product-details
Example URI
GET /v2/product/productUid
possible fix?
url = env(prod) + '/v2/product/' + uid
When trying to pull specific details about the products it seems the url is incorrect.
def product(header, uid=None, prod=True): if uid is None: url = env(prod) + '/v2/products' else: url = env(prod) + '/v2/products?productUid=' + uid return Call('get', url, header)url = env(prod) + '/v2/products?productUid=' + uid
This line doesn't return anything in postman with a valid uid.
The api guide has the url like so:
https://dev.megaport.com/#general-get-product-details
Example URI
GET /v2/product/productUid
possible fix?
url = env(prod) + '/v2/product/' + uid