Welcome to mirror list, hosted at ThFree Co, Russian Federation.

opentable_api.cpp « partners_api - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d6d1650f12d94cbb43bd6bccfdfaa544d65ef0c5 (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 <sstream>

#include "private.h"

namespace
{
  auto const kOpentableBaseUrl = "http://www.opentable.com/restaurant/profile/";
}   // namespace

namespace opentable
{
// static
std::string Api::GetBookTableUrl(std::string const & restaurantId)
{
  std::stringstream ss;
  ss << kOpentableBaseUrl << restaurantId << "?ref=" << OPENTABLE_AFFILATE_ID;
  return ss.str();
}
}  // namespace opentable