The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Getting Started
    4. API samplecode is not working

    API samplecode is not working

    Getting Started
    2 2 95
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Estukune01
      Estukune01 last edited by

      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.

      ev5f5d ev5fwn ev5gpy ev5h9q

      1 Reply Last reply Reply Quote 0
      • DavidLee
        DavidLee last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Moz is not working In my PC.
          seopack.org0404
          seopack.org0404
          0
          3
          20

        • On page Grader is not working on blogvali.com
          eli.myers
          eli.myers
          0
          2
          22

        • Why does Moz only seem to be crawling a snap shot of the site I am working with?
          dsmith802020
          dsmith802020
          0
          3
          32

        • Moz site crawl doesn't work
          DrainKing
          DrainKing
          0
          4
          82

        • MOZ Guru Needed for Freelance Work
          David-Kley
          David-Kley
          0
          2
          203

        • How long after sign up does the on page grader take to work?
          DavidLee
          DavidLee
          0
          4
          61

        • Moz API and license
          DavidLee
          DavidLee
          0
          4
          589

        • Any ideas why I can't connect my Google Analytics Account but everything else works
          venuliving
          venuliving
          1
          15
          852

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy