根据使用REST API的类别的扩音器作业列表

时间:2015-09-22 08:59:01

标签: php wordpress rest

我正在将Bullhorn设置为wordpress,现在我可以通过REST API获取访问令牌了。

但现在我正在获得问题工作清单。我想仅从特定类别获取作业,这是我对此

的查询
destViewController.montantS = [montant objectAtIndex:path.row];

我没有得到任何工作,它将类别名称视为无效字段。

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:0)

这里有几件事。你的where子句应该有

#include <iostream>
#include <string>
using namespace std;

class Stack {
private:
   int top;
   int capacity;
   int *storage;
public:
   Stack(int capacity) {
   if (capacity <= 0)
      throw string("Stack's capacity must be positive");
   storage = new int[capacity];
   this->capacity = capacity;
   top = -1;
   }

void push(int value) {
   if (top == capacity)
      throw string("Stack's underlying storage is overflow");
   top++;
   storage[top] = value;
 }

 int peek() {
    if (top == -1)
       throw string("Stack is empty");
    return storage[top];
 }

 void pop() {
    if (top == -1)
       throw string("Stack is empty");
    top--;
 }

 /* Our findValue function. */
 bool findValue(int key) {
    /* Now the usage of top makes perfect sense,
       the counter variable always contains the amount
       of stored elements. */
    if (top == -1) {
        throw string("Stack is empty");
    }

    /* We traverse all elements of our storage. */
    for (int i = 0; i < top; i++) {
        if(storage[i] == key) {
            return true;
        }
    }
    return false;
 }

bool isEmpty() {
   return (top == -1);
}

~Stack() {
   delete[] storage;
}
};


int main() {
    /* Init the new stack. */
    Stack* stack = new Stack(10);

    /* Push some elements for more fun. */
    stack->push('a');
    stack->push('b');
    stack->push('c');
    stack->push('d');
    stack->push('e');
    stack->push('f');

    /* Show charcode of last pushed element. */
    cout << stack->peek() << endl;

    /* Find 'e'. */
    if (stack->findValue('e')) {
        cout << "We found the value" << endl;
    }

    /* Try and not find 'g'. */
    if (!(stack->findValue('g'))) {
        cout << "We didn't find the value" << endl;
    }
    delete stack;
    return 0;
}

您需要单引号并指定要查询该类别的字段。

希望这有帮助。