How do I set anchors for the postman documentation? - postman

I make the documentation for api, how to make a cross reference (named anchor) with markdown in postman?
Is there such a similar option?
Take me to rest api ... <a name="api"> this is rest api </a>

You could create an element with an id "api" in a collection/folder/request description, and then link it in another place like [rest api](#api)
If you want to link a folder or request, you should get the ID (from the documentation itself) and then using the same Markdown as before with the respective ID.
Note: Take into account that Postman Documentation doesn't provide (at this moment) a way to specify a custom ID for a folder or request, so in case you're trying to do that, the best you can do is create an element with an id at the top of the description and then linking to that new element. It will scroll to a point under the title, which may result in a poorer user experience.

Related

How to get ondemand ids for Vimeo API

I am trying to work with the Vimeo API and I cannot figure out how to access the ondemand data.
The endpoint and parameters in the docs require an ondemand_id to work correctly. I assumed this ID would come from any official ondemand page within Vimeo. But whenever I search the ondemand pages of Vimeo and click on a resource, the URL does not contain any numerical ID.
It only contains the root path for the Vimeo website with /ondemand_page_name at the end. This value cannot be the ID since it is a string and not a number. I have looked through the entire page plenty of different times to try to find the ID but cannot seem to find it.
For example, when you visit a normal video page on Vimeo, the URL looks something like this:
https://vimeo.com/272976101
where the number 272976101 is the video_id that can be used within the API to get all the data about this particular video. Instead of this format, the ondemand pages have the format:
https://vimeo.com/ondemand/nebula
where there is no numerical ID within the URL. This is the issue I am having. How would I retrieve the public data about this ondemand page throught the API.
I feel like there may be a very simple solution/explanation to this issue and any help would be much appreciated.
Also, right now I am not using any SDK to access this data. I am strictly trying to figure out how the API works through the built-in client provided within the documentation.
It's undocumented, but you can use the On Demand custom url path as the ondemand_id.
So for your On Demand video at https://vimeo.com/ondemand/nebula, you can make an API request to this path: https://api.vimeo.com/ondemand/pages/nebula.
In the response, you'll see the "uri" value "/ondemand/pages/203314", which you can log on your end and use as the ondemand_id instead of /nebula.
Also note, this should be the same URL as your On Demand settings page: https://vimeo.com/ondemand/203314/settings
I hope this information helps!

How to get amazon affiliate product Url programatically

I need to get Amazon product affiliate Url programatically without logging in to
affiliate-program.amazon.com.
I know how to get it manually.
Log into Associates
Go to Product Linking -> Product Links
Search for the product and get the Text Link
I want the same programatically just by using ASIN, access key, amazon secret key,
and my associate tag.
Thanks in Advance.
You can use open-source libraries like Affiliate JS to automatically add the affiliation tags to links on your website.
<script data-aff="amazon.com, www.amazon.com : tag = MY-AMAZON-TAG" src="https://cdn.jsdelivr.net/npm/affiliate#1.2/dist/affiliate.js" async id="aff-js"></script>
Just simply replace MY-AMAZON-TAG with the tag that you made in Amazon (that probably looks like my-tag-20) and add the HTML right above the </head>. If you want to affiliate your URLs manually, simply add ?tag=my-tag to the end.
Before: https://www.amazon.com/dp/B0042TVKZY/
After: https://www.amazon.com/dp/B0042TVKZY/?tag=MY-AMAZON-TAG
Before: https://www.amazon.com/dp/B0042TVKZY/ref=longvndjks?nsjklasd=nkdnc
After: https://www.amazon.com/dp/B0042TVKZY/?tag=MY-AMAZON-TAG
I am looking for the same thing. From my searches, it looks like you can use the Product Advertising API by Amazon to generate the links.

Amazon Products Api

I was looking around web and amazon affilate apis, but can not find a way without scrapping amazon product pages to extract some of the data to display on my site.
I have input box where users can copy/past amazon links and I want to create preview to the product on next page using the image, price and other content and link back to the page. I saw this Amazon products API - Looking for basic overview and information, I have try to use id that I think was correct one to get data for but I got wrong result.
Example
https://www.amazon.com/Hello-Kitty-Petite-House-Complete/dp/B00I90NTCE/ref=sr_1_2
I assume this is B00I90NTCE the id.
Can someone point me to correct direction?
Well you should read the documentation for the amazon product api. Here is a link to the documentation: http://docs.aws.amazon.com/AWSECommerceService/latest/DG/Welcome.html. You can also try out the api using the scratch pad: http://webservices.amazon.com/scratchpad/index.html?rw_useCurrentProtocol=1. See also this link: http://docs.aws.amazon.com/AWSECommerceService/latest/GSG/SubmittingYourFirstRequest.html
The amazon api is RESTful which means it is stateless and it works over http. It is easy to use. you have to create a url with the required parameters. if you call this url from a programming language or copy/paste it in a browser, it will return xml. The xml will contain the product information such as product image, price, product description, amazon link etc. You can parse the xml using a suitable library for your programming language

Creating a shorten URL for products using Amazon advertising API

I'm using Amazon's API to browse for some products and I would like to generate an affiliate link for some of them.
I know I can get a normal affiliate link from the DetailPageURL field in the response (and that I can create one manually following the affiliate link format) but I would like to find an automated way to create a shorten URL for a product that contains my tag.
2 technical notes:
Shorten URLs are the ones Amazon provides that look like amzn.to/12345
I know I create these manually via the associates panel, but I'm looking for a way to get them using an API.
Apparently this can be done using bit.y's API, as every Amazon URL shortened by bit.ly will get the amzn.to/{unique_id} format.

how do i programmatically create folder for application to upload content in it using BOX rest api

I want to support box cloud facility my blackberry 10 app,for this i'm using box rest api to implement this functionality. so using box rest oauth2.0 i able to get authorizedcode and then accessToken and RefreshToken but still not able to create a folder of my app to upload content to user's box account. So please suggest me how do i implement this.
Thanks,
Ankur
You should probably include a little of your code. Otherwise this question won't really help anyone else.
If you've made it through the authentication stage, then you're 99% of the way there. You can create a folder by doing a POST to https://api.box.com/folders with a JSON payload that provides the name and parent_id of the folder you want to create and the location you want to create it in.
From your code above, it looks like you're trying to send a POST request to https://api.box.com/2.0/folders/0
Folder creation requests should actually be POST'd to:
https://api.box.com/2.0/folders
Note, there isn't a 0 there. I understand that it's fairly intuitive to POST to the ID of the parent folder you desire, but this is how we handle this.
Your request body must indicate the parent folder like this:
var postData ={"name":"New Folder", "parent":{"id": "0"}};
Hope that helps!