Reputation: 9
I'm trying to develope a C# application to send an authentication request to the server. I can do it with php application being ran from a web browser but not using visual studio in a class.
I made a class which is suppose to declare what $whmcsUrl is. https://developers.whmcs.com/api/sample-code/ This is where i am trying to copy from.
My class looks like this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace freeze_uk
{
class whmcsUrl
{
whmcsUrl = "https://www.frezee.uk/client/";
}
}
It says:
Error CS1519 Invalid token '=' in class, struct, or interface member declaration
Why can't I use this? Is what I'm trying to do even possible?
Thanks, James
Upvotes: 0
Views: 207