blob: 9454cef63b9d2353fc135a270e982d3f1d9cf699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "partners_api/opentable_api.hpp"
#include "std/sstream.hpp"
#include "private.h"
namespace
{
auto const kOpentableBaseUrl = "http://www.opentable.com/restaurant/profile/";
} // namespace
namespace opentable
{
// static
string Api::GetBookTableUrl(string const & restaurantId)
{
stringstream ss;
ss << kOpentableBaseUrl << restaurantId << "?ref=" << OPENTABLE_AFFILATE_ID;
return ss.str();
}
} // namespace opentable
|