Access the GPIO Pins based on Different IDEs

How do you declare pin D3 in Arduino IDE?
with this line of code I have the following error and I am stuck …

const int buttonPin = D3;    // button pin on RePhone GSM_Breakout pad A1

error: ‘D3’ was not declared in this scope
please advice, Thanks!