How do I obtain my partner ID

  • 3
  • Question
  • Updated 6 years ago
I am just getting started with the weather api. The docs say that I have to signup for a key and that I'll receive a key and partner ID via email. I did receive the key but I have not received my partner ID.

So when I attempt to use the API, I get an error: The remote server returned an error: (401) Unauthorized.

What should my partner ID be?

The below is my code. The second line fails with the error.

WeatherClient client = new WeatherClient("My ParnetID?", "MyKey");
var test = client.GetLocation("MyLocID");
Photo of jerrytovar

jerrytovar

  • 2 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 3
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
I don't know what partner ID you're talking about. Where does it say that in the docs?
Photo of bwellons

bwellons

  • 2 Posts
  • 0 Reply Likes
https://registration.weather.com/comm...
It says it in this doc. I'm trying to figure out what happened to a legacy site I'm working on and it's telling me my partner ID is no longer valid yet it has worked since 2007.
Photo of bwellons

bwellons

  • 2 Posts
  • 0 Reply Likes
And this is what my call looks like that has been working since 2007:

$file = "http://xoap.weather.com/weather/local...=" . $par . "&key=" . $key;

Is there a different call I can use to get the same XML feed that doesn't require a Partner ID?