API samplecode is not working
-
Hi,
I'm new to MOZ API, used their sample code and tested by changing some constant values, but it is generating following error when tried to access link metrics sample code. http://localhost/moz/php/complete/examples/
Undefined variable: postParams in C:\wamp64\www\moz\php\complete\services\links_service.php
Screenshots attached for reference.
-
Hello!
Can you provide a screenshot of what you have in link_service.php on line 80? This appears to be where the undefined error is reporting for. You may want to consult with a developer to troubleshoot as we are limited to providing dev support.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Why does Moz only seem to be crawling a snap shot of the site I am working with?
I was wondering if anyone can help? I am working using Moz to help improve the SEO on a website I am working with, the website contains thousands of pages, yet for some reason Moz only seems to be crawling a small snap shot of the website. I know there are particular pages that I had added a couple of weeks ago - about 300 in total - and none of these were showing on the first crawl, so I did another on-demand crawl and some of these showed up then. Despite this, it says it crawled 700ish pages, but there are getting close to 20-30ish thousand live pages on the site. Any thoughts and guidance as to why they crawling may be stopping?
Getting Started | | dsmith8020200 -
Moz site crawl doesn't work
The Moz site crawl isn't working for my campaign, but works for the site's on demand crawl. The search should not be disallowed by robots.txt or the headers. I'd like to be able to track the website for the campaign so I can see SEO gains / losses and increases / decreases in indexing.
Getting Started | | DrainKing0 -
Why does the MOZ bar not work on SERPs with site links?
Maybe a dumb question (am a beginner), but MOZ bar shows no information on SERP results with site links? I'm sure there's a reason? What is it?
Getting Started | | RionHaber0 -
Why has my website stopped working?
Signed up to Moz and my site is now down as it's "gathering data". Is this normal?
Getting Started | | BurrowsPT0 -
How Do I Scan My New Site & Grade My Work With The Robots Turned Off? For Pre-Inspection before I launch my Site?
I have a new site that has all the bots turned off so google can't index my site until I'm finished it. I've been working on this site for a couple months now optimizing and I was wondering if there was anyway I can run a preliminary scan on the site for my titles, URLs, Headers, Alt Tags and pretty much anything else that will grade my work and tell me if i did anything wrong? Can MOZ do this with the Bots turned off? Thanks
Getting Started | | Inframan0 -
New to MOZ and working with Web Mentions. Can I use operators?
Our name is HostDime but often put as Host Dime (2 words) by news sources and other sites. How do I set up my brand mention so I only get a notice when both words appear, in order, together. I don't want "That host is a dime" and such. Can I use a +Host +Dime?"Host Dime"? Do these operators work in MOZ?
Getting Started | | hostdime0 -
Moz API and license
Hi Support,We are new to SEOMOZ and would appreciate if you can answer the following:1. Can we build our own Hubspot right to our own website where members can access and see how their sites are performing using your API? If that is possible, do you have tips/suggestions on how?2. What is a crawl limit? How does that work?3. How many sites can we work on under the developers - professional license ?Looking forward to your responses.Thanks,Tony
Getting Started | | chickenjoy20130